[Resolved] Hide Author Box Area For some wp category in Generatepress Themes

Home Forums Support [Resolved] Hide Author Box Area For some wp category in Generatepress Themes

Home Forums Support Hide Author Box Area For some wp category in Generatepress Themes

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1569955
    Mehedi

    Hello Sir,
    hope you are doing well. i want to hide Author box area for Some Wp Category. Currently i use <b>”Simple Author Box”</b> Plugins for showing Author box.(Simple Author Box how can i hide this category box some Selected wp category?
    Thank & Regards,
    Mehedi

    #1570033
    Elvin
    Staff
    Customer Support

    Hi,

    You can use a Hook element with this code in it:

    <style>
    .saboxplugin-wrap{
    display:none;
    }
    </style>

    You then hook it to wp_head and set the Display Rule location dropdown values to: Post Category – [Your Selected category].

    Read more about Hook Element here:
    https://docs.generatepress.com/article/hooks-element-overview/

    A wise man once said:
    "Have you cleared your cache?"

    #1570122
    Mehedi

    Wow! Working,but it’s not hook with wp_head. its hook with after_content.Thank You So Much.

    #1570136
    Elvin
    Staff
    Customer Support

    Wow! Working,but it’s not hook with wp_head. its hook with after_content.Thank You So Much.

    Ah yes, as this is CSS, it should work anywhere you hook it as long as it’s within the page. 🙂

    Glad its working for you. No problem. 🙂

    A wise man once said:
    "Have you cleared your cache?"

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