Cyber Week Sale! Get $20 off GP Premium, $40 off our new Lifetime license, and 45% off license renewals/extensions! Learn more

[Resolved] Trying to put some links in the footer…

Home Forums Support Trying to put some links in the footer…

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #56085
    Richard 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.

    Thanks,

    Richard

    #56086
    Richard 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.

    #56089
    Richard 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!

    #56099
    Tom
    Lead Developer
    Lead Developer

    Hi Richard,

    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 🙂

    #56203
    Richard Hess

    THANKS, Tom!

    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.

    Thanks again,

    Cheers,

    Richard

    #56256
    Tom
    Lead Developer
    Lead Developer

    Ah, my mistake! Glad you caught that 🙂

    Glad it worked for you.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.