Archived

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

j powers

Menu bar color

7 posts in this topic

Can the menu bar be given a diff colour than  those available, if so does anyone have sample code on applying a gradient and new color ? 

Where is this applied, in the custom CCS section ?

 

Much appreciated.


Share this post


Link to post
Share on other sites

Hi there,

 

I have been trying to work through an issue with this myself today. I have set up DMS with a child theme wherein I am attempting to make some changes to the styles.less file to add a gradient to override the pre-packaged options in DMS. I add the following lines to the styles.less file:

 

.navbar.pl-color-red {
background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(188, 14, 16)), to(rgb(149, 0, 5)));
background-image: -webkit-linear-gradient(top, rgb(188, 14, 16), rgb(149, 0, 5));
background-image: -moz-linear-gradient(top, rgb(188, 14, 16), rgb(149, 0, 5));
background-image: -o-linear-gradient(top, rgb(188, 14, 16), rgb(149, 0, 5));
background-image: -ms-linear-gradient(top, rgb(188, 14, 16), rgb(149, 0, 5));
background-image: linear-gradient(top, rgb(188, 14, 16), rgb(149, 0, 5));
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#bc0e10', EndColorStr='#950005');
border-top: 1px solid rgb(149, 0, 5);
}
.navbar.pl-color-red .searchform .searchfield {
  border: 1px solid rgb(149, 0, 5);
}
 
I noticed that it is being compiled in the /wp-content/uploads/pagelines/compiled-css-xxxxxxxxx.css file and it is not being overridden by the child theme's style.css file, yet it is not being reflected on my site. If I plug the same code into either the Custom Code section on the DMS editor or directly into the child theme's styles.css file, it does take effect. I have been searching all day for the answer to this issue. I simply want to be able to edit the child theme's styles.less file and have the modifications take place.
 
Any suggestions from anyone on what I am doing wrong?
I am developing locally and here is the output of my DMS debug:
 
WordPress Version : 3.6 Multisite Enabled : No Current Role : Administrator Framework Path : /Users/highlander/Dropbox/Websites/angola3.dev/wp-content/themes/dms Framework URI : http://angola3.dev/wp-content/themes/dms Framework Version : 1.0.3 Framework Build : 1.0.3 PHP Version : 5.3 Child theme : Yes
/Users/highlander/Dropbox/Websites/angola3.dev/wp-content/themes/dms-template-theme
http://angola3.dev/wp-content/themes/dms-template-theme PHP memory : 256 Mysql version : 5.1.44 PHP type : Apache2handler PHP User : Highlander OS : Darwin Licence OK : Warren@peatfirestudios.com Plugins : 3
custom-sidebars/customsidebars.php
easy-random-quotes/kl-easyrandomquotes.php
feedwordpress/feedwordpress.php

 

Any help would be greatly appreciated.

 

Many thanks,

Warren


Share this post


Link to post
Share on other sites

peatfire You are very close. You just need to be more specific with your CSS and target .section-navbar.

 

Try .section-navbar .navbar.pl-color-red { your code }

 

See if that works.

 

Ellen


Ellen Moore

Pagelines Developer

www.elsue.com www.betterdms.com

Share this post


Link to post
Share on other sites

Thank you so much Ellen! Spot on.

1 person likes this

Share this post


Link to post
Share on other sites

Ellen is always spot on! :)


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites

 

Hi there,

 

I have been trying to work through an issue with this myself today. I have set up DMS with a child theme wherein I am attempting to make some changes to the styles.less file to add a gradient to override the pre-packaged options in DMS. I add the following lines to the styles.less file:

 

.navbar.pl-color-red {
background-image: -webkit-gradient(linear, left top, left bottom, from(rgb(188, 14, 16)), to(rgb(149, 0, 5)));
background-image: -webkit-linear-gradient(top, rgb(188, 14, 16), rgb(149, 0, 5));
background-image: -moz-linear-gradient(top, rgb(188, 14, 16), rgb(149, 0, 5));
background-image: -o-linear-gradient(top, rgb(188, 14, 16), rgb(149, 0, 5));
background-image: -ms-linear-gradient(top, rgb(188, 14, 16), rgb(149, 0, 5));
background-image: linear-gradient(top, rgb(188, 14, 16), rgb(149, 0, 5));
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,StartColorStr='#bc0e10', EndColorStr='#950005');
border-top: 1px solid rgb(149, 0, 5);
}
.navbar.pl-color-red .searchform .searchfield {
  border: 1px solid rgb(149, 0, 5);
}
 
I noticed that it is being compiled in the /wp-content/uploads/pagelines/compiled-css-xxxxxxxxx.css file and it is not being overridden by the child theme's style.css file, yet it is not being reflected on my site. If I plug the same code into either the Custom Code section on the DMS editor or directly into the child theme's styles.css file, it does take effect. I have been searching all day for the answer to this issue. I simply want to be able to edit the child theme's styles.less file and have the modifications take place.
 
Any suggestions from anyone on what I am doing wrong?
I am developing locally and here is the output of my DMS debug:
 
WordPress Version : 3.6 Multisite Enabled : No Current Role : Administrator Framework Path : /Users/highlander/Dropbox/Websites/angola3.dev/wp-content/themes/dms Framework URI : http://angola3.dev/wp-content/themes/dms Framework Version : 1.0.3 Framework Build : 1.0.3 PHP Version : 5.3 Child theme : Yes
/Users/highlander/Dropbox/Websites/angola3.dev/wp-content/themes/dms-template-theme
http://angola3.dev/wp-content/themes/dms-template-theme PHP memory : 256 Mysql version : 5.1.44 PHP type : Apache2handler PHP User : Highlander OS : Darwin Licence OK : Warren@peatfirestudios.com Plugins : 3
custom-sidebars/customsidebars.php
easy-random-quotes/kl-easyrandomquotes.php
feedwordpress/feedwordpress.php

 

Any help would be greatly appreciated.

 

Many thanks,

Warren

 

 

peatfire You are very close. You just need to be more specific with your CSS and target .section-navbar.

 

Try .section-navbar .navbar.pl-color-red { your code }

 

See if that works.

 

Ellen

Would that be the same Ellen if not applied to a child theme, just to confirm before I try it, thanks 


Share this post


Link to post
Share on other sites

@j powers Yes, it will work in the custom code area.peatfire code works for the Red Navbar in case you use his example.

 

Ellen


Ellen Moore

Pagelines Developer

www.elsue.com www.betterdms.com

Share this post


Link to post
Share on other sites

  • Similar Content

    • khat
      By khat+
      I think I may have installed pagelines pro incorrectly, and then used features incorrectly. I installed first platforms framework theme and then the child, thinking I could do setup for child later. I tried to set up a background image, and tried custom css feature in pagelines dashboard. I had mistakes in my css, and just thought that if I deleted the info in the css custom feature in pagelines dashboard that the new information would overwrite the old info. The background image didn't respond at all, probably because I didn't have the child directory renamed. I then tried to use the LSS plugin to create css and added more css, possibly, somewhere -sigh-. I never did change the background image and get it placed properly. I used a workaround and in nested containers I placed a background image which worked well enough, so I moved on to try to create my nav bar/ menu bar. When I go to the Menus panel, there is NO area where I can place a menu on a page. I have read and reread and re- re- reread the instructions for placing a menu. I've used the pagelines editor to place a menu, however only HOME shows up. I've been at this for many hours. I've since uninstalled all of my pagelines items and reinstalled, thinking that it would restore all my changes to default, but no, it is still all there, with all my unresolved issues. I am completely at a loss as to what to do next.
    • Jarek
      By Jarek+
      How to make the Impulse menu sticky?
      Here is a site that seems like it is doing just that: http://www.manhattanperiodontist.com/
      Here is the site I am working on: http://boeriu.digitalvector.com/ 
      I have no problem showing the menu at the bottom, but when scrolling up it does not stick.  I tried to add Nav Pro menu but when I do that, it just shows on top and no matter what I try is not working as I want it to.
      Any suggestions?
    • Dave
      By Dave+
      1) Toggle menu on mobile devices does not work properly, combination Chrome 56.0.2924.87 with Android 6.0.1

      2) Mobile / Default Menu > Set the primary/default navigation for your site. This will be used in the pop out mobile menu and as the default in navigation sections. Does not work.
    • David
      By David+
      We are building a long-page scrolling site with Pagelines 5. Our menu is made with # links that go to a container's unique ID, e.g. container_ux7al6g
      This works, but it doesn't look great in the menu. Is it possible to assign a 'nice' # link, e.g. /#solutions ? 
      We used to do this in the DMS2 platform through a workaround, but that doesn't seem to be possible now. 
      Any suggestions? 
    • yemoonyah
      By yemoonyah+
      I just installed and added the Flipper section to my home page and it makes my navigation/menu bar items disappear.
      They do show up again when scrolling down and everything seems normal on the other pages.
      http://yemoonyah.com
      Thanks.