G’day Tyler,
Thank you for a great plugin that works beautifully!!
Earlier versions of PHP do not support __DIR__.
To fix this I changed lines 37 and 98 of page-specific-stylesheets.php to use dirname(__FILE__) instead of __DIR__ as follows:
Line 37
include __DIR__ . ‘/templates/settings.php’;
include dirname(__FILE__) . ‘/templates/settings.php’;
Line 98
include __DIR__ . ‘/templates/meta-box.php’;
include dirname(__FILE__) . ‘/templates/meta-box.php’;
Maybe you could make this change to your plugin so it is compatible with earlier versions of PHP.
Cheers, John
]]>Trying this out on a WordPress 4.5.4 system and get these messages in the Page Specific Stylesheets box. Would you let me know any fix/workaround?
Warning: include(__DIR__/templates/meta-box.php) [function.include]: failed to open stream: No such file or directory in /home/…/wp-content/plugins/page-specific-stylesheets/page-specific-stylesheets.php on line 98
Warning: include() [function.include]: Failed opening ‘__DIR__/templates/meta-box.php’ for inclusion (include_path=’.:/usr/local/php5/lib/php’) in /home/…/wp-content/plugins/page-specific-stylesheets/page-specific-stylesheets.php on line 98
]]>I have one issue with this plugin
When I saved my page and reopen of new. I get miss my styles
What can I do?
https://www.ads-software.com/plugins/page-specific-stylesheets/
]]>Hi
Good plugin, but the CSS entered in the Page Specific box sometimes gets cleared.
NOTE TO OTHER USES: COPY AND SAVE ALL YOUR CSS CHANGES IN THE PAGE SPECIFIC CSS BOX.
I wonder if there is a fix for this?
Would be great to hear from the author. Again, a very useful plugin.
https://www.ads-software.com/plugins/page-specific-stylesheets/
]]>I use the plugin to add CSS to my page and then add the html in the page text editor but the page doesn’t seem to pick up on the css. Do I need to add it in as a stylesheet in my html or what?
All help is appreciated
https://www.ads-software.com/plugins/page-specific-stylesheets/
]]>Hi there, love this plug-in and use it often. I have noticed a problem where styles don’t ‘stick’ when a previous revision of a page/post is restored. Is this something you have noticed and if so, have you found a specific trigger that I should beware of so that styles don’t disappear when other users of the site make edits to pages?
https://www.ads-software.com/plugins/page-specific-stylesheets/
]]>I have created a table on my wordpress site, installed your plugin and utilized the css from this location to make it responsive:
https://codepen.io/geoffyuen/pen/FCBEg
Unfortunately it is having no effect whatsoever on the page. Any chance you might be able to help me out on this. Important that I get this working properly.
Thanks so much for having this plugin. I hope there is continued support for it.
https://www.ads-software.com/plugins/page-specific-stylesheets/
]]>I am creating a simple HTML table with 3 rows and 3 columns.
font-family does not work for <td> tags..
Any help is appreciated.
https://www.ads-software.com/plugins/page-specific-stylesheets/
]]>