Jump to content
dcahill82

changes to style.less file not showing up

Recommended Posts

dcahill82

New to Pagelines and LESS. It is my understanding that Pagelines utilized the style.less file since that's where all the code is (as opposed to the style.css). When I make a change to the style.less file and save it. The changes are NOT reflected in the site. What do I have to do to make my changes show up?

FYI - just installed the latest Pagelines and the MUD child theme so am working int he MUD child theme directory.

Share this post


Link to post
Share on other sites
beardedavenger

Sup,

Yup child themes utilize a style.less. The parent framework is (as of 2.3) composed of several encapsulated less files. These files,along with all the style.less files found within the theme, sections, and plugins, are all compiled into one virtual css file. When you save the framework, it will recompile and recache the file. So if you're working on a live site, you have to give the framework a random save to recache.

Here are some reasons why LESS fails to update;

1. Its failing in the compiler due to markup, but the compiler isn't flagging it. Happens on occasion with some syntax.

2. The framework needs a save to recompile the less

3. There's already a LESS error, and future LESS changes wont be updated.

4. CSS isn't specific enough so your rules are being overridden.

5. Just doing it wrong.

I'm gonna bet on #4. What's the specific thing you're trying to do?

Nick

  • Like 1

Something big is coming for DMS + photographers.

http://fotostheme.com

 

Nick Haskins & CO - New home for all of my PageLines Store products! 

http://nickhaskins.co

 

Better DMS - News, Tutorials, and Tips

http://betterdms.com

 

Share this post


Link to post
Share on other sites
Mictlan

@beardedavenger

Before I was using the editor to ad the code and make my changes. With this last update the same code I was using is no longer making any change. I read to not ad code in the editor instead go to the setings and make the changes there. I am still learning and I cant find that folder where I can add my code. I found a CSS folder with, multisite.css, objects, shortcodes, animation, but non of those make any diference i f I am add my code to those files. I opened the admin.css at the admin folder and there is no change yet. How can I find that .css file that will make my changes come back?

Share this post


Link to post
Share on other sites
Rob

Hi,

There are several places under different circumstances where you may apply CSS changes.

  1. If you're using a Child Theme, use an FTP client and open the sub-folder for the child theme and apply your changes to style.less. The child themes are found in wp-content/themes/ in a sub-folder with the child theme name.
  2. If you're using Framework directly, go to Dashboard > PageLines > Site Options > Custom Code in CSS Rules. This is totally allowed, and there's no restriction against it. Changes made here will be applied site-wide, whether you use a child theme or not.
  3. If you have the PageLines Customize plugin activated, go to Dashboard > Plugins > Editor. From the drop down list, select PageLines-Customize, then on the right side, select pagelines-customize/style.css and apply your changes and save.

Please do not attempt to edit core files as you suggest above. You will either totally break your site or, you will lose any changes made there with the next update. We do not support editing core files.


Former PageLines Moderator, Food Expert and Raconteur

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


  • Similar Content

    • gstrahle
      By gstrahle+
      Hi,
      I am hoping to figure out how I can get my PageLines Full Nav to display layered in front of a sticky footer element on my website - 3keymedia.com
      I would like the Full Nav to overlay the entire screen when opening the menu as you will see when opening on a desktop the footer of nav content is cropped by the sticky footer.
       
      Thanks


    • Christian
      By Christian+
      Hi everyone, since Instagram had allowed to publish in different ratio formats (instead of only square ratio) the grams stripe has different heights. Can you tell me if i can fix it easily with some CSS?
    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I have noticed that my primary sidebar becomes intermittently invisible when browsing through various blog articles on michaelkummer.com/blog.
      See:
      https://www.dropbox.com/s/z646sgoa3mfjl1j/Screenshot 2018-07-12 15.57.46.jpg?dl=0 and https://www.dropbox.com/s/vdledzzgginvwgv/Screenshot 2018-07-12 15.57.57.jpg?dl=0
      Upon refresh, the sidebar appears. I have been using the following CSS code to hide the sidebar on mobile without any issues. 
      @media only screen and (max-width: 993px) {
      /* hide sidebars */
           .plsb {
              display: none !important;
          }
      }
      I tried to add the following CSS to force the sidebar to show on screens that are wider than 994 pixels but to no avail. Any clue what could be causing this issue?
    • Michael Kummer
      By Michael Kummer+
      Hi guys!
      I am using the LESS/CSS Pagelines extension and tried to add the following code to make use of FontAwesome:
      a.c2a:before {
          content: "\f07a\00a0";
          font-family: "Font Awesome 5 Pro";
          Font-weight: 900;
          font-style: normal;
          font-weight: normal;
          text-decoration: inherit;
          padding-left: 4px;
      }
       
      The issue is that as soon as I have the CSS via the Custom Styling text box, Pagelines (or the extension) strips out the backslashes (\). As a result, I had to abandon the CSS/LESS extension and instead add all my CSS code to a separate .css file.
      Is there a fix or workaround for this?
      Thanks
      Michael
×