Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages »

[SOLVED] How to suppress the title on one page?


  #1  
Old Sep 7, 2016, 09:53 PM
Ob1knorrb
 
10 posts · Sep 2016
I have one page that gets populated by a parameter and I would like to suppress the title on just that page.
I saw a previous posting on how to do it for the home page but couldn't seem to get that to work
I tried putting a few variations of this into the CSS Inserts but nothing seemed to work

body.ice-products/product_page_test div.post-headline {display:none;}

Here is a page I'm using for testing this:
http://www.icewebring.com/ice-produc...ern%20Mirkwood

Any help would be appreciated, thanks!
  #2  
Old Sep 8, 2016, 03:03 AM
juggledad's Avatar
juggledad
 
23,526 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
ok how did you come up with the CSS? where did you get the classes you are using with the 'body'?
1) go view that page
2) use the browsers 'view source' option to see teh source of the page
3) optional - copy the page source to a text editor
4) find the 'body' element
5) list the classes you can use with the body statement
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Sep 8, 2016, 07:58 AM
Ob1knorrb
 
10 posts · Sep 2016
I started with what was posted in this thread:

http://forum.bytesforall.com/showthread.php?t=23405

The classes that are listed in the page that seem relevant are:

div.post-headline{}div.post-headline h1,
div.post-headline h2{ margin:0; padding:0;padding:0;margin:0;text-align:center}
div.post-headline h2 a:link,
div.post-headline h2 a:visited,
div.post-headline h2 a:active,
div.post-headline h1 a:link,
div.post-headline h1 a:visited,
div.post-headline h1 a:active{color:#666666;text-decoration:none}
div.post-headline h2 a:hover,
div.post-headline h1 a:hover{color:#000000;text-decoration:none}

Later in the page where the title actually gets used looks like this:
<div class="post-headline"><h1>Product_Page_test</h1></div>

Part of what I'm unsure about is what the proper way to reference the actual page is, it's a subpage so do I need to include the parent page as part of the name? Does the fact that I'm calling it with a parameter make a difference?

Thanks!

Last edited by Ob1knorrb; Sep 8, 2016 at 08:05 AM. Reason: Additional info
  #4  
Old Sep 8, 2016, 08:01 AM
juggledad's Avatar
juggledad
 
23,526 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Maybe I wasn't clear. View the source of the page in your browser. Find the <body class=".....">
Now, what are the classes?

FYI - I know the answer, I'm going to make you find them so you will learn how to do this
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Sep 8, 2016, 09:07 AM
Ob1knorrb
 
10 posts · Sep 2016
Ahh, I see,

<body class="page page-id-711 page-child parent-pageid-38 page-template-default logged-in admin-bar no-customize-support" >

Learning is good, I try and do it all the time
  #6  
Old Sep 8, 2016, 09:37 AM
Ob1knorrb
 
10 posts · Sep 2016
After logging out
<body class="page page-id-711 page-child parent-pageid-38 page-template-default" >
  #7  
Old Sep 8, 2016, 09:42 AM
Ob1knorrb
 
10 posts · Sep 2016
I took an educated guess that the "page-id-711" was the critical piece I needed and went with this:

body.page-id-711 div.post-headline h1 {display:none;}

Worked like a charm

Thanks!
  #8  
Old Sep 8, 2016, 11:19 AM
juggledad's Avatar
juggledad
 
23,526 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
Excellent!! You get an 'A'
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I suppress the page name at the top of the page? JamesEDams Header configuration & styling 6 Jan 26, 2014 04:47 AM
[SOLVED] Suppress page title on an individual page. gnosis Forum How-To 4 Oct 17, 2011 09:17 AM
[SOLVED] Can I suppress the Page Title but allow it to show up in the Menu bar? jstein Center area post/pages 5 Dec 19, 2010 12:16 PM
Can you suppress date on sticky post? Andante Atahualpa 3 Wordpress theme 6 Mar 21, 2010 05:39 AM
How do you suppress/hide title tags in widgets? Wyro Sidebars & Widgets 2 Feb 28, 2010 05:05 PM


All times are GMT -6. The time now is 07:01 AM.


Powered by vBulletin® Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.