Jump to content


Photo
- - - - -

Stopping Pagelines Dynamically Serving CSS

CSS Cache

  • Please log in to reply
17 replies to this topic

#1 rsantiago

rsantiago

    Member

  • Members

  • 10 posts
  • Framework Version:2.4.4
  • Country: Country Flag

Posted 22 October 2013 - 03:23 PM

Is there a way of stopping pagelines dynamically serving css? WordPress Version : 3.6.1 Framework Version : 2.4.4 Framework Build : 2.4.4

#2 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 22 October 2013 - 03:38 PM

Depends what the issue is, if you provide a url and turn on debug we might be able to assist.



#3 rsantiago

rsantiago

    Member

  • Members

  • 10 posts
  • Framework Version:2.4.4
  • Country: Country Flag

Posted 22 October 2013 - 03:47 PM

Hi Simon

 

The issue we have is that a css file is not being generated so its not being cached.

 

Is there a way to use a static css file?



#4 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 22 October 2013 - 03:54 PM

it WILL use a static file, if it can. If the file permissions are right etc.



#5 rsantiago

rsantiago

    Member

  • Members

  • 10 posts
  • Framework Version:2.4.4
  • Country: Country Flag

Posted 22 October 2013 - 03:58 PM

So can you tell me what folders and what files and what permissions?
 
I cannot seem to get this to work despite having looked at all the threads on the forum



#6 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 22 October 2013 - 04:01 PM

your wp-content/uploads folder.



#7 rsantiago

rsantiago

    Member

  • Members

  • 10 posts
  • Framework Version:2.4.4
  • Country: Country Flag

Posted 22 October 2013 - 04:11 PM

Hi

 

That folder is fully writable - it seems that the css file is not being written to it

 

Does a specific user need to own the folder? At the moment Daemon owns it



#8 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 22 October 2013 - 04:16 PM

Well thats the issue then, unless your username is Daemon of course, anything is possible.

 

add to your child theme functions.php

 

add_filter( 'render_css_posix_', '__return_true' );



#9 rsantiago

rsantiago

    Member

  • Members

  • 10 posts
  • Framework Version:2.4.4
  • Country: Country Flag

Posted 22 October 2013 - 04:27 PM

Hi

 

We are using the base theme not a child theme.

 

Is there a work around - we are looking to launch tomorrow and this has just come up as an issue.

 

 

is there any where else I can add the filter?



#10 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 22 October 2013 - 04:28 PM

The base theme is a child theme add it there.



#11 rsantiago

rsantiago

    Member

  • Members

  • 10 posts
  • Framework Version:2.4.4
  • Country: Country Flag

Posted 22 October 2013 - 06:16 PM

Sorry to be a pain but could you tell me which folder and file this filter needs to be added to?



#12 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 22 October 2013 - 06:19 PM

you said you have the base child theme, add to the functions.php in that folder.



#13 rsantiago

rsantiago

    Member

  • Members

  • 10 posts
  • Framework Version:2.4.4
  • Country: Country Flag

Posted 22 October 2013 - 06:22 PM

that would be wp-content/themes/pagelines/functions.php?

 

Sorry I'm not a developer

and everything has been working well except this.



#14 James B

James B

    Advocate

  • Moderators
  • 4978 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 23 October 2013 - 12:19 AM

Hi there, no thats thats the core file.

 

You'll need to install the base theme (which is like a blank child theme) and make that the active theme. You can download the base theme from here -

Please Login or Register to see this Hidden Content

 

Then place that filter Simon provided within the functions.php of the base theme.



#15 rsantiago

rsantiago

    Member

  • Members

  • 10 posts
  • Framework Version:2.4.4
  • Country: Country Flag

Posted 23 October 2013 - 07:58 AM

Will this team work with Pagelines Framework? - it looks like its for DMS?

 

Should I install the Pagelines Base Theme (Starter Theme)?

 

Will I lose anything by activating either?



#16 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 23 October 2013 - 11:22 AM

either child theme would do.



#17 rsantiago

rsantiago

    Member

  • Members

  • 10 posts
  • Framework Version:2.4.4
  • Country: Country Flag

Posted 23 October 2013 - 11:26 AM

Will I lose my custom code or pageline settings by activating?

 

Can I switch back to the core theme without losing anything?



#18 Simon_P

Simon_P

    Messer

  • Administrators
  • 8388607 posts
  • LocationDevon
  • Framework Version:2.0
  • Country: Country Flag

Posted 23 October 2013 - 11:28 AM

As long as you have not edited any files... no you wont lose any settings.

 

Wordpress however DOES store a couple of settings on a theme basis, widgets and menus, so you might have to move them back.







Also tagged with one or more of these keywords: CSS, Cache