Hiding certain content added with Simple Hooks

Community Forums Forums Design Tips and Tricks Hiding certain content added with Simple Hooks

This topic is: resolved

This topic contains 16 replies, has 3 voices, and was last updated by  braddalton 11 months, 1 week ago.

Viewing 2 posts - 16 through 17 (of 17 total)
  • Author
    Posts
  • #56306

    myersbr2
    Participant
    Post count: 17

    I was able to get this working and it has remained functional for a couple of weeks now. Thanks to braddalton and others who gave me the input to make it happen!

    Final code to make this work was (inserted in simple hooks, this code was specifically in genesis_Before:

    <?php
    if ( !is_user_logged_in() ) { ?>

    <div id=”skyscraper”>
    DIV CONTENT HERE
    </div>

    <?php }
    ?>

    It turned out that having someone logged in was the best approach to consider because only those users who register on the site (paid members) would be the only ones logging in. We don’t have a “free” membership level so this solved it nicely.

    #56313

    braddalton
    Participant
    Post count: 8797

    No worries. Good solution.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

Viewing 2 posts - 16 through 17 (of 17 total)

You must be logged in to reply to this topic.