Community @ The Turning Gate

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.

  • New user registrations are disabled.
  • Users cannot create new topics.
  • Users cannot reply to existing topics.

You are not logged in.

#1 2015-06-13 00:42:14

gmansfield
Member
Registered: 2012-12-01
Posts: 54

Unable to get Custom CSS working

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

#2 2015-06-13 00:47:48

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Unable to get Custom CSS working

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

#3 2015-06-13 00:50:46

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Unable to get Custom CSS working

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

#4 2015-06-13 02:20:39

gmansfield
Member
Registered: 2012-12-01
Posts: 54

Re: Unable to get Custom CSS working

Ah ok Rod so where do I set that from within Pages?

Offline

#5 2015-06-13 02:34:45

rod barbee
Moderator
From: Port Ludlow, WA USA
Registered: 2012-09-24
Posts: 17,830
Website

Re: Unable to get Custom CSS working

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

#6 2015-06-13 04:48:55

gmansfield
Member
Registered: 2012-12-01
Posts: 54

Re: Unable to get Custom CSS working

Thanks very much Rod all working now along with your script!
Graham

Offline

Board footer

Powered by FluxBB