Jump to content

Archived

This topic is now archived and is closed to further replies.

Anthony Luth

Pagelines Framework - Show Salebar Only On Homepage

Recommended Posts

Anthony Luth

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


Use PageLines Drag & Drop Framework and WordPress to build professional websites faster, easier and better than ever before.

Wordpress Developer | Programmer | Enthusiast

@tonyluth | http://www.luthwedding.com

Share this post


Link to post
Share on other sites
Rob

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!


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Anthony Luth

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


Use PageLines Drag & Drop Framework and WordPress to build professional websites faster, easier and better than ever before.

Wordpress Developer | Programmer | Enthusiast

@tonyluth | http://www.luthwedding.com

Share this post


Link to post
Share on other sites
Anthony Luth

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


Use PageLines Drag & Drop Framework and WordPress to build professional websites faster, easier and better than ever before.

Wordpress Developer | Programmer | Enthusiast

@tonyluth | http://www.luthwedding.com

Share this post


Link to post
Share on other sites
Rob

Change the # to . in my code.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Rob

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


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Anthony Luth

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


Use PageLines Drag & Drop Framework and WordPress to build professional websites faster, easier and better than ever before.

Wordpress Developer | Programmer | Enthusiast

@tonyluth | http://www.luthwedding.com

Share this post


Link to post
Share on other sites
Rob

Give this a try:

 

.pl-salebar {display: none;}

Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
Anthony Luth

with the first option.....

 

header-pl.png

 

with the second option it still appears on all pages.


Use PageLines Drag & Drop Framework and WordPress to build professional websites faster, easier and better than ever before.

Wordpress Developer | Programmer | Enthusiast

@tonyluth | http://www.luthwedding.com

Share this post


Link to post
Share on other sites
Anthony Luth

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


Use PageLines Drag & Drop Framework and WordPress to build professional websites faster, easier and better than ever before.

Wordpress Developer | Programmer | Enthusiast

@tonyluth | http://www.luthwedding.com

Share this post


Link to post
Share on other sites
James B

This should remove the container and move the navbar up

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

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

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
Anthony Luth

Thanks, that did it!

 

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

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

That was line I needed


Use PageLines Drag & Drop Framework and WordPress to build professional websites faster, easier and better than ever before.

Wordpress Developer | Programmer | Enthusiast

@tonyluth | http://www.luthwedding.com

Share this post


Link to post
Share on other sites
Anthony Luth

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!


Use PageLines Drag & Drop Framework and WordPress to build professional websites faster, easier and better than ever before.

Wordpress Developer | Programmer | Enthusiast

@tonyluth | http://www.luthwedding.com

Share this post


Link to post
Share on other sites
Danny

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.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
topjaba

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
greenfly

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. 


The answer to many issues can be found by searching in the forum before posting as someone else  may very well have had the same problem before you have.  Also, reading the documentation can help you gain a good understanding of how everything works. 

 

Please do not send me private messages. Occam's razor - The principle states "Keep things simple!"

Share this post


Link to post
Share on other sites

  • Similar Content

    • Kedark
      By Kedark+
      Hello, I need help. Can and how to do it. I need to add more page appearance templates (page attributes). At the moment it's default and FRAMEWORK A, FRAMEWORK B etc. I need to add two more. How can I do this.
      Unfortunately, I did not find such a thread on the forum.
      Regards
      Radoslaw
    • ideascurator
      By ideascurator+
      Hello Pagelines,   I no longer use pagelines services. I have deactivated the automatic annual payment. But it already charged to my credit card. Since I cancelled my contract before the end, Can I request to refund?
    • Anthony King
      By Anthony King+
      Hello,
      I am wanting to know what the status of the Pagelines Platform.
      I have noticed that there has been absolutely no updates on Platform 5 for over 8 months.
      Please tell me you haven't gone off on another tangent and going to build the next great solution
      and then leave all of us to have to completely rebuild our sites like we did for
      Pagelines, then DMS, then Pagelines Platform.
      I like what you build, but what you need to do is build one product and then make it better, rather than 
      abandoning it and building something else.
      You haven't done anything for so long that even WordPress is providing a warning.
      "Warning: This plugin has not been tested with your current version of WordPress."
      So what is the Status. I mean if I am going to pay a monthly fee for a product, I don't want to pay for one
      that is no longer being supported. You have a great product, I'm not bashing it, I'm just wondering what 
      your next move is because I have business decisions to make for myself, and whether of not this is something
      I should stick with.

      Please be kind enough to respond.

      Thank You,
      Anthony
    • tuciudadenred
      By tuciudadenred+
      Hi everyone, what happens is that the web page metrosalarmas.com has a google tags which I have not attacked where I can look to remove those tags and be able to locate the correct ones.
    • oseehys
      By oseehys+
      Hello There,
      So i want to use platform 5 and DMS sections on a single page, i am using a child theme with pinspro as my main theme and i activated platform 5, the only problem am having so far is the fixed option, my navbars are not aligning to their default size, and it will be great if platform 5 header and footer section will function, has anyone used this option, how can i make the best use of platform 5 and DMS on a site
      Cheers
×