• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Add Copyright Guidelines To Genesis Entry Header On Posts Only

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › Design Tips and Tricks › Add Copyright Guidelines To Genesis Entry Header On Posts Only

This topic is: not resolved

Tagged: genesis_entry_header, is_singular

  • This topic has 4 replies, 2 voices, and was last updated 8 years, 1 month ago by spunkkii.
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • March 29, 2017 at 11:01 pm #204029
    spunkkii
    Member

    Hi all!

    I'm trying to add a copyright notice at the beginning of each post - after the post title and before the content (genesis_entry_header). I've added this code into Genesis Simple Hooks, and it works - but it shows up on every page, not just posts. I'm wondering how to alter this so it only shows up on posts.

    Guidance welcome, please! 🙂

    <div>
    <p><i>This article is copyrighted by Global Freedom Movement.</i>
    Visit our Re-post guidelines</p> 
    </div>

    http://globalfreedommovement.org
    March 30, 2017 at 12:37 am #204031
    Brad Dalton
    Participant

    In functions.php, using a code editor, add the is_singular( 'post ')) conditional tag after the function like this:

    add_action( 'genesis_entry_header', 'add_copyright', 15 );
    function add_copyright() {
    is_singular( 'post '))
    echo 'Your Content';
    }
    

    Tutorials for StudioPress Themes.

    March 30, 2017 at 1:09 am #204034
    spunkkii
    Member

    Thanks Brad! A couple of clarifications if you will?

    Do I need an "if" before is_singular?

    I'm unsure whether I need to keep the Genesis Simple Hook code I entered or whether to remove it.

    Do I add my copyright notice here: echo 'Your Content';? If so, can I add html here? Sorry if these questions are silly (I'm new to this!)

    I've added this code but there's clearly an issue with it 😉

    add_action( 'genesis_entry_header', 'add_copyright', 15 );
    function add_copyright() {
    if ( is_singular ('post '))
    echo "<div><p><strong><i>This article is copyrighted by Global Freedom Movement.</i></strong>""<strong><a href=http://globalfreedommovement.org/repost-guidelines> Visit our Re-post guidelines</a></strong></p>&nbsp;
    </div>";
    }
    March 30, 2017 at 1:18 am #204036
    Brad Dalton
    Participant

    Yes, remove simple hooks and add the code to functions. Example:

    add_action( 'genesis_entry_header', 'add_copyright', 5 );
    function add_copyright() {
    if ( is_singular( 'post' ) )
    echo 'Add HTML here';
    }
    

    Swap out the HTML within the single quotes with your own.


    Tutorials for StudioPress Themes.

    March 30, 2017 at 1:33 am #204037
    spunkkii
    Member

    Excellent! Thank you. Worked like a charm 🙂

  • Author
    Posts
Viewing 5 posts - 1 through 5 (of 5 total)
  • The forum ‘Design Tips and Tricks’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble