- This topic has 5 replies, 2 voices, and was last updated 5 years, 11 months ago by Tom.
December 18, 2014 at 8:20 pm #56085Richard Hess
Hi, I’ve just been building aurorahs.com on the Exhibit child theme and LOVE Generate Press and the full add-on suite.
One thing is bothering me.
I want to put some reminder links before the header, and the ideal place to do that is AFTER CONTENT, but that won’t work on the HOME page. Is there an easy way of disabling the “HOOK” on just the home page? The reason is I have two custom sidebars there and the link bar gets crunched into the middle third. I did not want to use columns because I had issues with them working properly, they were abysmal on the smartphone AND the center section will be regularly updated while the sides much less so.
I have it set up now as BEFORE FOOTER CONTENT, but with that, I get a line between the body and the widget containers, though I have “SINGLE CONTAINER” selected.
RichardDecember 18, 2014 at 8:22 pm #56086Richard Hess
I should note that the links are in an HTML table so they respond somewhat better to different display widths than if they were just padded with non-breaking spaces.December 18, 2014 at 9:22 pm #56089Richard Hess
Well, I was able to change from a table to a text string for the links, and by using the <div> command to format it and including a break at the end, I lost the white space.
If you know a quick way to remove this “hook” from just the home page, I think it would look better AFTER CONTENT as it goes before the social media icons which makes more sense.
Thanks!December 19, 2014 at 12:06 am #56099TomLead DeveloperLead Developer
You can use PHP to exclude it from the homepage like this:
<?php if ( ! is_front_page() ) : ?> Stuff in here won't appear on the homepage <?php endif; ?>
Hope this helps 🙂December 19, 2014 at 6:23 am #56203Richard Hess
Worked like a charm, when I turned “font page” into “front page” <smile>
Also, my <DIV> formatting needed to be outside the PHP IF clause or I got background visible.
RichardDecember 19, 2014 at 10:21 am #56256
- You must be logged in to reply to this topic.