tedwards500
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Twelve] Shortcode in Header But Only on HomepageI got it to work!
As I was researching, I remembered that I already have a plugin designed just for this purpose (WooSidebars). I couldn’t use it before because it required a widget area to base it off of, and there wasn’t one before.
Thanks for the tips!
Forum: Themes and Templates
In reply to: [Twenty Twelve] Shortcode in Header But Only on HomepageNo. I added it by editing the functions.php file. When I use just this code
<?php
if ( dynamic_sidebar('sidebar-8') ) :
else :
?>
<?php endif; ?>
it works. It is when I add the parts to display it only on the homepage that it stops showing up.I can quickly create another template however. What would be in it?
Forum: Themes and Templates
In reply to: [Twenty Twelve] Shortcode in Header But Only on HomepageSo I have gotten a new widget area added and the widget works in the header. This site was very helpful for anybody who is looking to do that.
I am now back at my original problem of needing it to only show on the homepage.
<?php if ( is_home() ):?><?php
if ( dynamic_sidebar('sidebar-8') ) :
else :
?>
<?php endif; ?><?php endif; ?>
I tried this, but it doesn’t show up at all. Is there something wrong with the code? Is the page somehow not detected as the homepage anymore because it uses a different template?
Forum: Themes and Templates
In reply to: [Twenty Twelve] Shortcode in Header But Only on HomepageThanks for the reply.
The funny thing is, yesterday I was able to get it working to show on all the pages. But today when I do the same thing, it doesn’t seem to work.
I will start looking at other possible methods. Maybe adding a widget area into the header to use the plugin’s widget?
Forum: Themes and Templates
In reply to: [Twenty Twelve] Working With .entry-metaSolved!
Moving the twentytwelve_entry_meta to a new place solved both my problems.
Thanks for the help, and if anybody would like me to go into more detail about how I got it to work, just say the word!