Master Slider on homepage of Customizr only
-
Hey,
First of all I’d like to thank you very much for the great theme Customizr!
I am trying to set up Masterslider after header on main page of the site, and also I’d like to set up another one on the inner page https://terrasolutions.ru/?p=137. The rest of pages have to be without slider.
Masterslider, which I need on home page the short code is [masterslider id=”10″], php call is <?php masterslider(10); ?>
Masterslider, which I need on the page https://terrasolutions.ru/?p=137 the short code is [masterslider id=”13″], php call is <?php masterslider(13); ?>
I did childify the theme, I wrote the code below in functions.php of my Baby Customizr, and failed.
Your “Add some text after header” code snippet works perfectly though, you can see it on my main page.
My functions.php code which does not work, made for main page only, not for inner page, just to test if main page slider works:<?php /* Write your awesome functions below */ // Add some slider after the header at the homepage add_action( '__after_header' , 'master_slider' ); function master_slider(){ if ( !is_front_page() ) return; <div> <?php echo do_shortcode('[masterslider id="10"]'); ?></div> <?php }
Here is some info about the site:
# SITE_URL: https://terrasolutions.ru
# HOME_URL: https://terrasolutions.ru
# IS MULTISITE : No# THEME | VERSION : Customizr | v3.3.12
# WP VERSION : 4.1.1
# PERMALINK STRUCTURE : /%postname%/# ACTIVE PLUGINS :
Childify Me: 1.0.5
Featured Pages Unlimited: 2.0.8
Master Slider WP: 2.9.12
Use Any Font: 4.3.1
WordPress Font Customizer: 2.0.10
WordPress SEO: 1.7.4PHP Version: 5.3.28
MySQL Version: 5.5.35-33.0
Web Server Info: Apache/2.2.15 (CentOS)WordPress Memory Limit: 40MB
PHP Safe Mode: No
PHP Memory Limit: 256M
PHP Upload Max Size: 32M
PHP Post Max Size: 32M
PHP Upload Max Filesize: 32M
PHP Time Limit: 30
PHP Max Input Vars: 1000
PHP Arg Separator: &
PHP Allow URL File Open: Yes
WP_DEBUG: DisabledShow On Front: page
Page On Front: home (#2)
Page For Posts: Блог (#56)Could you please help me to find out what is wrong?
Thank you in advance.
- The topic ‘Master Slider on homepage of Customizr only’ is closed to new replies.