azoneweb
Forum Replies Created
-
sorry I put wrong code
add_filter ('hybrid_after_header' , 'void_content_gallery'); function void_content_gallery(){ if ( function_exists( 'meteor_slideshow' ) ) { meteor_slideshow(); echo "<p>this is hybrid_after_header test</p>"; } }
I’m testing this now.
actually I was using old version Hybrid theme so the index.php code was different. anyways I upgraded Hybrid so now my index.php has much longer code.
I want to show the slideshow at header part on the frontpage (hybrid hook name is “hybrid_after_header”).
I add this code in my function.phpadd_filter ('hybrid_after_header' , 'void_content_gallery'); function void_content_gallery(){ if ( function_exists( 'meteor_slideshow' ) && is_front_page() ) { meteor_slideshow(); echo "<p>this is hybrid_after_header test</p>"; } }
the echo part is working. after I updated Hybrid, archive pages got the same probrem. (it was working before update)
I opened the index.php (original hybrid theme file), but it was empty like this
<?php /** * Index Template * * This template should not be shown. It is a placeholder. * Specific templates for each type of content are available. * @link https://themehybrid.com/themes/hybrid/template-hierarchy * * @package Hybrid * @subpackage Template */ /* Simplicity is bliss. */ ?>
I found home.php at parent theme directory so copy and past to my child them, but didn’t work. changed the name to front-page.php, didn’t work as well.
I wanted to send the site which I’m working, but its client site and can’t show anybody before launch ??I’m trying to put the meteor slides on my homepage as well. Using a child theme of theme hybrid (https://themehybrid.com/themes/hybrid).
I tried widget, shortcode, template tag, hook from functions.php.
its working other pages and posts, but doesn’t work only on homepage.
when I set “a static page” as a front page, it works. but using “Your latest posts” as a front page doesn’t work. why????thanks,
azoneweb