- This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
- The forum ‘Back End’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
Hi all,
I was wondering if there is a way to use PHP to hide a div element on a certain page. (I’m using WordPress). I know the quick and easy way is this…
php if(is_page(50) {
style type=”text/css”
#hidethisdiv {
display: none;
}
/style
php } else { };
However, I need to hide it completely, in other words, hide it from the source code as well. Does anyone know how I can accomplish this?
I know the code is messed up above, but for some reason I coudln’t get the code to display properly here in the forums.
I tried, but for some reason I tried to use the code on a post in WordPress and it didn’t work.
I know WordPress has support forums but I have gotten 0 responses about this, so thought I’d try here.
Basically what I’m trying to do is put this:
http://www.singleinstilettos.com/get-married-in-a-year-lori-bizzoco
on the homepage
http://www.singleinstilettos.com
I have a wordpress query code, however I needed to just display everything that is just in the blue border. So I figure the only way to do that was to add an exception code in the post…but it wasn’t working when I queried.