Home › Forums › Support › Conditional Section Display This topic has 5 replies, 2 voices, and was last updated 6 years, 10 months ago by Tom. Viewing 6 posts - 1 through 6 (of 6 total) Author Posts June 26, 2017 at 10:03 am #339284 Marcelo Hello Tom, i have this conditional: <?php if (! is_user_logged_in()) { echo '<p class="box-padding-wosection"><a><i class="fa fa-info" aria-hidden="true">TEXT HERE</a></p>'; } ?> But i whant to know if can i use a function that canuse for display or hide an selected Section. June 26, 2017 at 3:19 pm #339562 TomLead Developer Lead Developer Hi there, So you’re wanting to hide or show a GP Section (the add-on) based on whether the user is logged in or out? June 26, 2017 at 3:21 pm #339567 Marcelo Correct Tom! And do this maybe in the function.php childtheme. June 27, 2017 at 12:15 am #339794 TomLead Developer Lead Developer Looked into this today, currently the only way to do it would be using CSS (which is less than ideal for this kind of case). I’ve made a note to try to integrate something into Sections to make it possible in a future version. June 27, 2017 at 1:33 pm #340284 Marcelo Awesome! Thank you Tom. I resolve this momentary doing this in the Hook Addon: <?php if (is_shop() || is_product_category() || is_page(2) || is_product()) { echo 'HTML and TEXT'; } ?> June 27, 2017 at 8:22 pm #340441 TomLead Developer Lead Developer Awesome 🙂 Author Posts Viewing 6 posts - 1 through 6 (of 6 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In