[Resolved] GP Hooks Code for Copyright Current Year

Home Forums Support GP Hooks Code for Copyright Current Year

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #81061
    Mary Pearson

    I’m having to use GP Hooks for content that appears below the Generate Press Copyright position. For that reason I need to enter the copyright info in another hook that is closer to the bottom of the page.

    When I enter Copyright %current_year% in the Hooks it shows up exactly as I’ve entered it. Is there a code that I can use in the GP Hooks to add the copyright with current year in a hook which is at the very bottom.

    Thanks Tom!

    #81081
    Tom
    Lead Developer
    Lead Developer

    Hi Mary,

    Try this:

    <?php echo date('Y'); ?>

    And make sure “Execute PHP” is checked.

    #81900
    Cheryl Thurston

    Hi Tom,
    Thanks for your terrific add-on for the copyright area in the footer. My client wants to add her site map and Blog link in the “black bar” area as well.

    I think I read something about being able to do this with shortcodes and HTML but now I can’t find the instructions for that. I have read the knowledge base and will try to add shortcodes for the links but I’m not a WordPress guru.

    If you could send me a link to the instructions, it would be greatly appreciated. Have a nice day.

    #81928
    Mary Pearson

    PERFECT!!!!! Many, many thanks again Tom!

    #81966
    Tom
    Lead Developer
    Lead Developer

    @Cheryl

    You can use HTML in the Copyright area to build links like this:

    <a href="http://google.com">Link to Google</a>

    #291645
    Mike

    I’m trying to add an internal page link to the copyright area, ie: privacy policy page
    Using your method above

    a href=”http://google.com”>Link to Google

    I’m getting this output link: https://www.mywebsite.com/”http://google.com/&#8221;
    which of course produces Page not found page.

    What is the correct html code to use for linking to an internal page?

    I got it to work using index.php?page=## but couldn’t add the target _blank bit to open in new window or tab.

    Hints?

    #291650
    Leo
    Staff
    Customer Support

    Hi Mike,

    This should be the correct HTML you are looking for:
    <a href="https://PRIVACY-PAGE-LINK-HERE" target="_blank">Privacy</a>

    If you need additional assistance, can you open a new topic? Thanks 🙂

    #291669
    Mike

    Sorry, but that code doesn’t work. I got it to work using:

    %copy% %current_year% (My Website Name), ALL RIGHTS RESERVED<br>%current_year% <a href=\"index.php?p=246\" target=\"_blank\"> Privacy Policy</a>

    #291679
    Leo
    Staff
    Customer Support

    Glad you got it working 🙂

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