Slider

I donot want slider on all the pages except front page Please help

Thanks
Manish Rohilla

Hello there,

Thank you for asking.

Unfortunately there is no option to hide the slider on other pages through the admin panel at the moment. You should need to do it by modifying the header-rev.php template file in a child theme mode.

Firstly, you should create a Moesia Pro child theme. Head on here for more detailed guidance.

Your child theme’s style heading should look like the following.

/*

Theme Name: Moesia Pro Child
Theme URI: https://athemes.com/theme/moesia
Author: aThemes
Author URI: https://athemes.com
Description: Moesia is the business theme you need in order to build your presence on the Internet. Choose from eleven predefined blocks and build the homepage that best suits your company. Each of the homepage blocks can have a parallax background image and its own set of colors. Moesia also features a selection of Google Fonts, two types of layouts for the blog page, cool animations and effects, a parallax header and much more.
Version: 1.44
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moesia-pro-ii
Tags: light, two-columns, three-columns, right-sidebar, fluid-layout, responsive-layout, custom-colors, custom-background, custom-header, custom-menu, featured-images, sticky-post, theme-options, threaded-comments, translation-ready

Learn about child theming here https://codex.wordpress.org/Child_Themes

*/

Copy the header-rev.php file from parent theme to child theme. Then, open it in your code editor. Find the following line.

<?php crellySlider($alias); ?>

To display it on front page only, replace to

<?php
if(is_front_page()){
	crellySlider($alias);
}
?>

Lastly, install and activate your child theme.

Let me know how it goes. I’ll wait to hear back from you regarding your stats.

Warmest regards,
Kharis

Please provide me the code for function.php

Hello there,

Here is the code.

Warmest regards,
Kharis