Hello support team.
I was wondering if there was an option for temporarily disable or hide parts of a text or an element?
Let me give you an example. On my homepage I’ve created a new element (single column -100%) In that column I’ve inserted a Text box and an Icon box.
After a while I just want to temporarily disable or hide the single column (or just the text box/icon box) let’s say for a few days.
Before I was using WordPress I’ve done this in php like this: <?php /* content I want to hide */ ?>
Is there an easy way in this theme to do this?
Thanks in advance.
Kind regards,
Nino
Hey Nin0!
Thank you for using the theme!
Yes, that is possible. Just use the html comment tag. Make sure that you switch the editor to Text or HTML mode. Add something like this:
<!-- THIS IS A HIDDEN TEXT -->
I hope that helps.
Regards,
Ismael
Hey Ismael,
Thanks for the quick response! When I use the html comment code it removes everything that’s between the comments (so far so good) but it is still visible when you view the page code in your browser.
I’ve though it would also work with the php comment tags, because php comments are not visible in your page code section. But it didn’t. you can see the whole php code on the source of the page
Do you think there is another option?
Tnx!
Kind regards,
Nin0
Hey!
Thank you for the update.
PHP codes doesn’t really render on the frontend unlike the html’s comment tag which will only hide the text or anything in between. Aside from that, you can use this plugin. This will enable the editor to accept php codes using the [insert_php]//HIDE THIS TEXT[/insert_php] shortcode. Please read the plugin’s instruction: http://wordpress.org/plugins/insert-php/
Cheers!
Ismael
SUPER!! This does exactly what I want!
Thanks a lot for your advice en support.
Bye,
Nin0