• 0

Pagelines Framework - Show Salebar Only On Homepage


Question

Posted · Report post

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

Share this post


Link to post
Share on other sites

15 answers to this question

  • 0

Posted · Report post

This should remove the container and move the navbar up

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

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

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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:

.blog #pl-salebar {visibility: visible !important;}
#pl-salebar {visibility: hidden;}

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!

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Change the # to . in my code.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Give this a try:

 

.pl-salebar {display: none;}

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

with the first option.....

 

header-pl.png

 

with the second option it still appears on all pages.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

Thanks, that did it!

 

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

.page-id-84 .pl-salebar-push {
  display: block !important;}

That was line I needed

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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!

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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.

Share this post


Link to post
Share on other sites
  • 0

Posted · Report post

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. 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now