Hide portion of a page
-
Hi all!
I’m new in forum and in WordPress world (until yesterday I used Drupal), so sorry if my questions are stupid.In my site (WordPress 4.5) I need to hide a portion of a page only in a specific page. More detailed, I need to hide the top banner in right sidebar of THIS PAGE (and only for that page of the website).
Perhaps I can do it via CSS or JQuery but I don’t know.
I hope in suggestion!Thank you very much!
-
There’s a lot on that page. Could you link a screenshot with the item you want removed circled?
Here it is!
http://postimg.org/image/qujt41ypd/[Link amended. These forums do not use BB code.]
Sorry! Here it is!
I see two options to do this:
1) use the plugin “widget context”. Then, from appearance -> widgets, tell that widget not to display itself on a given page (or pages)
https://wordpress.org/plugins/widget-context/
2) CSS
.postid-270 #avadv-gpt-5_ad_container {display:none}If you look a the <body> tag, you’ll see each page is given a unique class so you can target pages via CSS
I can’t use the firse option because it isn’t a widged that I create. It’s automatically inserted in template by my host.
I’ve tried the second option using that code in “Custom css-js-php” plugin but it doesn’t work (item continues to be displayed).
it appears that that block is inserted by javascript and the ids change from visit to visit.
If your host is inserting ads on your site, it’s time to find a new host.
The topic ‘Hide portion of a page’ is closed to new replies.