Jump to content


Photo
- - - - -

hide page heading for specific page


  • Please log in to reply
23 replies to this topic

#1 tandan

tandan

    Super Member

  • Members


  • 152 posts
  • LocationNew York
  • Country: Country Flag

Posted 04 May 2012 - 08:50 PM

Hi there, I'm trying to hide the page title for only one page because it doesn't look good under the "Boxes" above (for the staff photos and names) for this particular template page i set up. I need the "content" to appear below (i tried also to use a "content box" but as i already have a "content box" set up for the top area above my branding, it duped it when i tried to have two content boxes on one page--that was weird too, but another issue) but without the header title saying 'board members'. You can see what I mean when you view it here (it's password protected and the PW is pagelines):

Please Login or Register to see this Hidden Content

I tried firebug but couldn't find the right selectors...can someone help??? I was trying to do a display:none approach... Thanks a bunch! Tan

#2 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 04 May 2012 - 09:03 PM

Tan, It takes a combination of the post ID and .hentry and .entry-title:

Please Login or Register to see this Hidden Content


Let us know if that works.

#3 tandan

tandan

    Super Member

  • Members


  • 152 posts
  • LocationNew York
  • Country: Country Flag

Posted 04 May 2012 - 09:16 PM

hi rangelone, that's what i got off firebug too...and i tried it again but nothing... :( any other ideas?

#4 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 04 May 2012 - 09:33 PM

Where did you add the code?

#5 tandan

tandan

    Super Member

  • Members


  • 152 posts
  • LocationNew York
  • Country: Country Flag

Posted 04 May 2012 - 09:39 PM

in the base theme's style.css... should it not be there? i've done other mods and added it there without a problem...

#6 Henry Perkins

Henry Perkins

    Friendly Contributor

  • Members

  • 198 posts
  • LocationAustin, TX
  • Country: Country Flag

Posted 04 May 2012 - 11:49 PM

I've had difficulty with the Base Theme's functions and css files. Have you tried the pagelines-customize plugin? I've found much better results there.

#7 tandan

tandan

    Super Member

  • Members


  • 152 posts
  • LocationNew York
  • Country: Country Flag

Posted 05 May 2012 - 12:22 AM

hi henry, no, i haven't tried the customize plugin...i'm not sure if can use both now that i've started using the other. i also tried the above code in the custom codes section of dashboard > pagelines > custom code and no go there either... i have no idea how to implement this using "content" section...maybe some other method that i'm not seeing?

#8 Henry Perkins

Henry Perkins

    Friendly Contributor

  • Members

  • 198 posts
  • LocationAustin, TX
  • Country: Country Flag

Posted 05 May 2012 - 12:26 PM

You can use both together, as long as same content doesn't appear in both. (just to avoid redundant styling)

Add this to your pagelines-customize plugin style.css

Please Login or Register to see this Hidden Content



#9 tandan

tandan

    Super Member

  • Members


  • 152 posts
  • LocationNew York
  • Country: Country Flag

Posted 05 May 2012 - 03:05 PM

Hi Henry, that worked BUT it also took away the headers on all the other pages and didn't target that particular post...

#10 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 05 May 2012 - 03:12 PM

Try this CSS instead:

Please Login or Register to see this Hidden Content



#11 tandan

tandan

    Super Member

  • Members


  • 152 posts
  • LocationNew York
  • Country: Country Flag

Posted 05 May 2012 - 03:17 PM

Hi Henry! I totally figured it out thanks to a combo of yours and Rangelone's code... I took your #post-25.hentry and plugged it into his other selectors--and it worked! So the final code that worked was:

Please Login or Register to see this Hidden Content

What I don't get is HOW to get that code from using Firebug. I use Firebug often but with pageslines I have so many problems trying to find the selectors and feel like such a noob all the time. I just don't GET what I'm missing... In any case, thanks for your help! That #post-25 did the trick!!

#12 tandan

tandan

    Super Member

  • Members


  • 152 posts
  • LocationNew York
  • Country: Country Flag

Posted 05 May 2012 - 03:20 PM

@Catrina, Hi! I just saw your message and tried that too and it worked! Thanks so much!

My comment from above still stands: [quote]What I don't get is HOW to get that code from using Firebug. I use Firebug often but with pageslines I have so many problems trying to find the selectors and feel like such a noob all the time. I just don't GET what I'm missing...[/quote

Do you have any tips?

#13 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 05 May 2012 - 03:47 PM

You're welcome :).

If you're trying to do something on one specific page (in this case, the Board Members page), the first selector you need to use is the one in the body tag, which is at the top of the source page and it's always in the format page-id-# (# is replaced by the ID number for that specific page). So far that CSS will look like this:

Please Login or Register to see this Hidden Content


...But it's not done yet. You need to add the selector for the page element you're trying to customize (in your case, you want to hide the page title. The page title selector is going to look like this when it's found in Firebug:

Please Login or Register to see this Hidden Content


There's a space between "entry-title" and "pagetitle". In the CSS selector you use, you just need to replace that space with a period so that it looks like this:

Please Login or Register to see this Hidden Content


So the CSS will now look like this when you add the selector above:

Please Login or Register to see this Hidden Content


...and then the CSS attributes you want are put inside curly brackets:

Please Login or Register to see this Hidden Content


  • carl007 likes this

#14 tandan

tandan

    Super Member

  • Members


  • 152 posts
  • LocationNew York
  • Country: Country Flag

Posted 05 May 2012 - 04:03 PM

awesome, thanks so much for taking the time to help, catrina. i can't wait to try it out on something else! :)

#15 janpeeters

janpeeters

    Advocate

  • Members

  • 307 posts
  • LocationBreda, The Netherlands
  • Country: Country Flag

Posted 20 May 2012 - 02:51 PM

You can also find the page-id by looking at the pagetitle when you're editing a page in Wordpress. It will show something like: /wp-admin/post.php?post=XX&action=edit if you use the number at the XX for page-id-xx you're good to go.
  • carl007 likes this

#16 tandan

tandan

    Super Member

  • Members


  • 152 posts
  • LocationNew York
  • Country: Country Flag

Posted 20 May 2012 - 05:13 PM

@janpeeters, hi! thanks for the tip! i'm actually trying to do the same exact thing for the home page of this site:

Please Login or Register to see this Hidden Content


where the page id is 15 so i did:

Please Login or Register to see this Hidden Content

and it doesn't work. :( do you have any idea why?? i followed the exact steps above and i'm stumped. :(
thanks so much!
tan

#17 tandan

tandan

    Super Member

  • Members


  • 152 posts
  • LocationNew York
  • Country: Country Flag

Posted 21 May 2012 - 06:51 PM

@catrina, i actually tried what you mentioned above on another site and it's not working...any ideas on why? is it because it's a home page?

Please Login or Register to see this Hidden Content


where the page id is 15 so i did:

Please Login or Register to see this Hidden Content



#18 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 21 May 2012 - 06:55 PM

2.2 has a new filter for this:

Please Login or Register to see this Hidden Content



#19 tandan

tandan

    Super Member

  • Members


  • 152 posts
  • LocationNew York
  • Country: Country Flag

Posted 21 May 2012 - 08:17 PM

@pross I went to download the new framework but only 2.1.6 is available for download. Are you just letting me know that 2.2 is coming out or am I missing the update somehow? Thanks for your help!

#20 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 21 May 2012 - 08:52 PM

2.2 will be next major release not available quite yet, just saying you can use this new method when it is.