Support community for TTG plugins and products.
NOTICE
The Turning Gate's Community has moved to a new home, at https://discourse.theturninggate.net.
This forum is now closed, and exists here as a read-only archive.
You are not logged in.
Pages: 1
I wonder if anyone can help me?
I have followed the instructions for setting up PHP plugins but am unable to seem to get a custom css to work.
My test site is on www.graham-mansfield.com/test/. I have got the PHPPlugins directly in the root of the test site. I followed the instructions and got the correct address which is :- /kunden/homepages/33/d400783932/htdocs/graham-mansfield/test/phplugins
I am using the custom CSS supplied as a way to test (i.e. turning the background red) but it doesn't seem to work. The only area I need the custom CSS to work is on my Galleries area as I want to round the corners and add a drop shadow to the galleries. Rod Barbee supplied me with the CSS but an still unable to get a simple on to work.
Can anyone help?
Thanks
Graham
Offline
HI Graham,
your phplugins file is pointing to this location for the css:
<link rel="stylesheet" href="/phplugins/css/custom.css" />
but since you're in a sub-folder, it should be this:
<link rel="stylesheet" href="/test/phplugins/css/custom.css" />
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
when you deploy this to your main site, you'll need to use /phplugins/css/custom.css
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Ah ok Rod so where do I set that from within Pages?
Offline
you don't. change the path to custom css in the phplugins.php file. The whole function will now look like this:
// CUSTOM STYLESHEET
// This function implements a custom stylesheet from which users may provide additional page styling or override existing styling set by the plugin
// Edit the custom.css file in /phplugins/css/ to define styles
// Serves as an example of a function being applied globally
function ttg_head_end( $style, $path ) {
echo '
<link rel="stylesheet" href="/test/phplugins/css/custom.css" />
';
} // END
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
Thanks very much Rod all working now along with your script!
Graham
Offline
Pages: 1