Jump to content


Photo
- - - - -

Pagelines Framework - Show Salebar Only On Homepage

salebar pagelines framework plus

Best Answer James B , 15 December 2012 - 03:27 AM

This should remove the container and move the navbar up

 
.pl-salebar-push {
  display: none !important;}

.blog .pl-salebar-push {
  display: block !important;}
Go to the full post


  • Please log in to reply
15 replies to this topic

#1 Anthony Luth

Anthony Luth

    Advanced Member

  • Members
  • 98 posts
  • LocationMinnesota, USA
  • Framework Version:Developer 2.3.8
  • Country: Country Flag

Posted 15 December 2012 - 02:03 AM

I was curious if it was possible to display the salebar only on the homepage, right now I only see the hide option?



#2 Rob

Rob

    One Smart Egg

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

Posted 15 December 2012 - 02:49 AM

Anthony,

 

We're really not supposed to provide CSS, but I can't see any way to explain this without writing a doctoral dissertation even I wouldn't understand, so here goes.  Add this code to Custom Code > CSS Rules:

Please Login or Register to see this Hidden Content

The top one displays, the bottom hides everywhere else.

 

If you have a static homepage with a page ID, replace .blog with  .page-id-XX  where the XX is the numeric page number.

 

See, I told you this was complex. lol.

 

Happy Coding!



#3 Anthony Luth

Anthony Luth

    Advanced Member

  • Members
  • 98 posts
  • LocationMinnesota, USA
  • Framework Version:Developer 2.3.8
  • Country: Country Flag

Posted 15 December 2012 - 02:56 AM

Thank you, but doesn't seem like its being passed....



#4 Anthony Luth

Anthony Luth

    Advanced Member

  • Members
  • 98 posts
  • LocationMinnesota, USA
  • Framework Version:Developer 2.3.8
  • Country: Country Flag

Posted 15 December 2012 - 02:58 AM

I had previously tried to find #sale bar but wasn't finding it in firebug



#5 Rob

Rob

    One Smart Egg

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

Posted 15 December 2012 - 03:03 AM

Change the # to . in my code.



#6 Rob

Rob

    One Smart Egg

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

Posted 15 December 2012 - 03:04 AM

If you have a cache plugin, leave the code in CSS rules, clear the plugin's cache.



#7 Anthony Luth

Anthony Luth

    Advanced Member

  • Members
  • 98 posts
  • LocationMinnesota, USA
  • Framework Version:Developer 2.3.8
  • Country: Country Flag

Posted 15 December 2012 - 03:06 AM

Yeah I had done that of course, the problem is it simply hides the writing and color, but it doesn't remove the bar, just appears as white space



#8 Rob

Rob

    One Smart Egg

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

Posted 15 December 2012 - 03:10 AM

Give this a try:

 

Please Login or Register to see this Hidden Content



#9 Anthony Luth

Anthony Luth

    Advanced Member

  • Members
  • 98 posts
  • LocationMinnesota, USA
  • Framework Version:Developer 2.3.8
  • Country: Country Flag

Posted 15 December 2012 - 03:14 AM

with the first option.....

 

header-pl.png

 

with the second option it still appears on all pages.



#10 Anthony Luth

Anthony Luth

    Advanced Member

  • Members
  • 98 posts
  • LocationMinnesota, USA
  • Framework Version:Developer 2.3.8
  • Country: Country Flag

Posted 15 December 2012 - 03:16 AM

Notice the white space at the top? Thats dead space.... its part of the image ;)



#11 James B

James B

    Advocate

  • Members

  • 5126 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 15 December 2012 - 03:27 AM   Best Answer

This should remove the container and move the navbar up

Please Login or Register to see this Hidden Content



#12 Anthony Luth

Anthony Luth

    Advanced Member

  • Members
  • 98 posts
  • LocationMinnesota, USA
  • Framework Version:Developer 2.3.8
  • Country: Country Flag

Posted 15 December 2012 - 03:34 AM

Thanks, that did it!

 

Please Login or Register to see this Hidden Content

That was line I needed



#13 Anthony Luth

Anthony Luth

    Advanced Member

  • Members
  • 98 posts
  • LocationMinnesota, USA
  • Framework Version:Developer 2.3.8
  • Country: Country Flag

Posted 15 December 2012 - 03:36 AM

Now to just play with the bbPress and figure out how to hide the subforums and then its game on! Thanks James B & Rob for your help!



#14 Danny

Danny

    Is Awesome!

  • Moderators
  • 16342 posts
  • LocationManchester, UK
  • Country: Country Flag

Posted 16 December 2012 - 12:59 PM

The simplest way to only show the Salebar on your homepage would be to use the SaleBar option Hide on which pages? and add the id's of the pages you wish the salebar not to be visible on.



#15 topjaba

topjaba

    Advanced Member

  • Members

  • 56 posts
  • Framework Version:DMS
  • Country: Country Flag

Posted 10 May 2014 - 08:01 AM

To Danny's point, I would add that if your site has tons of pages, inputting all the page ids for those pages you don't want an element to appear would be terribly tedious business.  However, if the next update to the UI would include a ONLY SHOW ON THE FOLLOWING PAGE ID'S component, those of us with larges sites would benefit quite a bit.



#16 greenfly

greenfly

    Advocate

  • Members

  • 3268 posts
  • LocationManchester, England
  • Framework Version:latest
  • Country: Country Flag

Posted 10 May 2014 - 09:05 PM

HI @topbaja 

 

Could you please create a new topics rather than add to a topic from 2 years ago. This is also about the Framework rather than DMS system. 







Also tagged with one or more of these keywords: salebar, pagelines, framework, plus