Title: Components logic
Last modified: November 20, 2020

---

# Components logic

 *  Resolved [fafanellu](https://wordpress.org/support/users/fafanellu/)
 * (@fafanellu)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/components-logic/)
 * 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)

 *  [Vytis](https://wordpress.org/support/users/bvytis/)
 * (@bvytis)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/components-logic/#post-13700377)
 * Hi [@fafanellu](https://wordpress.org/support/users/fafanellu/),
 * The theme does not have a documented/clean way to achieve something similar, 
   unfortunately.
 *  Thread Starter [fafanellu](https://wordpress.org/support/users/fafanellu/)
 * (@fafanellu)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/components-logic/#post-13701225)
 * 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, 6 months ago by [fafanellu](https://wordpress.org/support/users/fafanellu/).

Viewing 2 replies - 1 through 2 (of 2 total)

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

 * ![](https://i0.wp.com/themes.svn.wordpress.org/neve/4.2.4/screenshot.png)
 * Neve
 * [Support Threads](https://wordpress.org/support/theme/neve/)
 * [Active Topics](https://wordpress.org/support/theme/neve/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/neve/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/neve/reviews/)

## Tags

 * [components](https://wordpress.org/support/topic-tag/components/)
 * [logic](https://wordpress.org/support/topic-tag/logic/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * 2 replies
 * 2 participants
 * Last reply from: [fafanellu](https://wordpress.org/support/users/fafanellu/)
 * Last activity: [5 years, 6 months ago](https://wordpress.org/support/topic/components-logic/#post-13701225)
 * Status: resolved