• Resolved fafanellu

    (@fafanellu)


    Hi there
    I’d like to add some logic to my Neve header components. For instance, I have a HTML component in my navbar, and I’d like to be able to change its inner text, when the user is authenticated, something like :

    if( is_user_logged_in() ) {
    //do something with the HTML component
    }

    Is there a clean way to achieve that ?

    Thanks for your help

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @fafanellu,

    The theme does not have a documented/clean way to achieve something similar, unfortunately.

    Thread Starter fafanellu

    (@fafanellu)

    I finally found a way, just added an empty HTML component and wrote a function which prints some HTML with the hook : ‘neve_top_bar_content’. Anyway, thanks !

    • This reply was modified 5 years, 4 months ago by fafanellu.
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Components logic’ is closed to new replies.