Remove Genesis box from Portfolio Page

Community Forums Forums General Discussion Remove Genesis box from Portfolio Page

This topic is: not resolved

This topic contains 8 replies, has 3 voices, and was last updated by  Hard Boiled Greg 1 year, 8 months ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #18754

    jonbuscall
    Participant
    Post count: 5

    I love the Minimum theme but I can’t get the Genesis Call-Out Box at the end of posts that I created to not appear on Portfolio posts to.

    Does anyone know the conditional I need to use to ensure the call-out-box doesn’t get put on portfolio pages.

    Thanks.


    #18875

    Hard Boiled Greg
    Participant
    Post count: 88

    I hate posting untested code, but:

    if (‘portfolio’ == get_post_type())

    will check to see if the current post is the portfolio post type.

    Let me know how it goes.

    HBG


    Website: Hard Boiled Greg Twitter: @hbgreg

    #18882

    jonbuscall
    Participant
    Post count: 5

    Nope. Didn’t work I’m afraid.

     

    I am using: is_single()

    to hook the call-out-box after the blog post, but if (‘portfolio’ == get_post_type()) does not remove it from the portfolio pages. It just creates a server error.

    But thanks for your suggestion.

     


    #18884

    braddalton
    Participant
    Post count: 10203

    Use a conditional tag with the Widget Logic plugin to remove the custom after post widget.
    [php]
    ! if ( ‘portfolio’ == get_post_type()
    [/php]
    What do you mean by the call out box? Are you referring to the Genesis eNews extended widget?

    If its a widget, you can use that conditional tag.

    Can you paste a url to the exact portfolio post.


    #18894

    jonbuscall
    Participant
    Post count: 5

    That didn’t work either.

    It’s not a widget.

    URL: blog post http://jontusmedia.com/should-you-put-a-video-or-slider-on-your-website/

    portfolio post: http://jontusmedia.com/portfolio/e-commerce-site/  (This is the page I want the call-out box removed)

    Thanks.


    #18904

    braddalton
    Participant
    Post count: 10203

    The audit-box after your posts correct?

    If so, add a custom post class to the custom post type in your child themes functions.php file and use that class as the selector to display none using CSS.

    This code will remove the audit box from the post with i.d 4833

    [css]
    .postid-4833 #audit-box {
    display:none;
    }
    [/css]

    Or remove the audit box from all posts assigned to the Portfolio post type after adding a custom post class to the portfolio post type:

    [css]
    .custom-post-class #audit-box {
    display:none;
    }
    [/css]

    Or add the conditional ! if ( ‘portfolio’ == get_post_type() to your custom coding used to create and display the audit-box


    #18905

    braddalton
    Participant
    Post count: 10203

    Would be easier to create an after post widget area for your audit box and add the conditional tag to code or add it to the widget using the Widget logic plugin.


    #18908

    braddalton
    Participant
    Post count: 10203

    Here’s an easier way:
    [css]
    .single-portfolio #audit-box {
    display:none;
    }
    [/css]


    #18915

    Hard Boiled Greg
    Participant
    Post count: 88

    Hi,

    No, if (‘portfolio’ == get_post_type()) won’t remove it on it’s own, it is just the conditional to check to see if the current post is the portfolio post type, you would then have to tell it what to do if the condition is true.

    Would you mind posting the code you are using to create the call-out box, and I’ll help you with the conditional.

    Thanks,

    HBG


    Website: Hard Boiled Greg Twitter: @hbgreg

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.