Hi,
I had created a slider and inserted it as a Header ad in Theme Panel Ads with the code:
<?php putRevSlider(“slider1″,”homepage”) ?>
Style 8 has been chosen for the header.
This worked fine in theme version 1.5 but it no longer works in version 1.6.
As you can see in https://www.athensprivatetoursgreece.com/, slider does not show at all.
Can you please suggest a solution?
Yannis
Hi,
After update your template file was overwritten, please make sure that you add again your code in loop-single-8.php or single_template_8.php.
Thanks!
Actually, I had changed nothing in single_template_8.php.
All I had done was to create a header ad with the code <?php putRevSlider(“slider1″,”homepage”) ?>. That was done in the Theme Panel –> Ads. It was much easier than altering the single_template_8.php, but since this option does not work anymore, then I will have to modify the relevant php file.
Hi,
Sorry for misunderstanding I thought that you want it for post template 8. So if the solution that you used in 1.5 version doesn’t work anymore, please try this for header style 8: http://screencast.com/t/QuIMq7s0
<?php if (is_front_page()){
putRevSlider("slider1");
} else{
locate_template('parts/header/ads.php', true);
}?>
Result: – Homepage: http://screencast.com/t/1V9cYckqFf
– Post page : http://screencast.com/t/54R8kgijlv
Hope this helps!
-
This reply was modified 11 years by
Alin [tagDiv].
Alin,
I tried something else because I wanted a full-width slider. I changed the header-style-8.php file and added this code in a separate div:
<!– Show Slider –>
<div><?php putRevSlider(“slider1″,”homepage”) ?></div>
<!– END Show Slider –>
I saved the header-style-8.php in the child Theme: …/themes/Newsmag-Child/parts/header/header-style-8.php
Unfortunately it doesn’t work. It works ONLY if I modify the same file in the Newsmag theme, not in the child theme. Any idea why this happens?
Yannis
Hi,
For the moment there is an issue with child theme(overwrite only files from the root), we will provide a new documentation in soon as possible.
Thanks for understanding!