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-01-30 02:58:38

outpostjeff
Member
Registered: 2014-02-24
Posts: 27

Custom CSS not working

I know I'm missing something here but my CSS is not being recognized (trying to remove drop shadows from SM Sharing buttons using code provided by Matthew in earlier post). Thought I followed the PHPlugins-Custom CSS set up instructions. Screen shots show current config...
path
finder
php
css

Offline

#2 2015-01-30 03:02:36

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Custom CSS not working

'phplugins-sample' on your webserver should be renamed to 'phplugins'.

As always, a link to your site would be helpful.

Last edited by Daniel Leu (2015-01-30 03:08:55)


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#3 2015-01-30 07:44:07

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

Re: Custom CSS not working

And after renaming that folder, be sure to modify the path to phplugins to reflect the change in the folder name.

be sure to look over this part of the documentation: http://ce4.theturninggate.net/docs/doku … _phplugins


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-01-30 16:48:38

outpostjeff
Member
Registered: 2014-02-24
Posts: 27

Re: Custom CSS not working

Thanks to you both but still stumped I'm afraid. I changed the folder name to 'phplugins' and got the full path from the browser per instructions and pasted that in. Screen shots and link to one of my gallery pages is below. Any additional suggestions would be much appreciated...

http://outpostcreative.com/galleries/entertainment/

path2.png
name.png
ds.png

Offline

#5 2015-01-30 19:35:22

Matthew
Administrator
From: San Francisco, CA
Registered: 2012-09-24
Posts: 5,795
Website

Re: Custom CSS not working

PHPlugins are working just fine. The problem is that the page isn't looking for the custom stylesheet in the right place. In the phplugins.php file, update the path to the custom.css file.


Matt

The Turning Gate, http://theturninggate.net

Offline

#6 2015-01-30 21:48:01

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

Re: Custom CSS not working

And best practice would be to have the phplugins/ folder at the root of your site if you intend to use it for site wide changes.
If you decide to remove or rename your sample_galleries template you'll lose all your customizations


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#7 2015-02-08 10:33:25

hursey
Member
From: Los Angeles
Registered: 2012-12-07
Posts: 113
Website

Re: Custom CSS not working

I am experiencing the same issue...after reading through this I THINK I have addressed all the issues here..but still not seeing the custom CSS kick in...

Currently I am doing this on a standalone page but will ultimately be using this on many pages managed through "Publisher"

Here is my test page: http://www.hursey.com/clients/test


Sitting Pretty in Sunny L.A.

Offline

#8 2015-02-08 11:03:36

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Custom CSS not working

It looks like your custom.css is not called. Did you setup phplugins for this gallery?


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#9 2015-02-08 11:19:08

hursey
Member
From: Los Angeles
Registered: 2012-12-07
Posts: 113
Website

Re: Custom CSS not working

okay... I have the checkbox checked for "Enable PHPlugins" and I have specified a path... but it appears it is not "doing it"???


Sitting Pretty in Sunny L.A.

Offline

#10 2015-02-08 11:35:02

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Custom CSS not working

Did you enable the custom stylesheet include in phplugins.php? There is some code that you need to uncomment.

function ttg_head_end( $style, $path ) { 
    echo '    <link rel="stylesheet" type="text/css" media="screen" href="/phplugins/css/custom.css" />';
}

Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#11 2015-02-08 11:47:57

hursey
Member
From: Los Angeles
Registered: 2012-12-07
Posts: 113
Website

Re: Custom CSS not working

I took out the "delete" lines... this is the entire  section now:

// 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="http://www.hursey.com/clients/phplugins/css/custom.css" />
    ';
} // END


Sitting Pretty in Sunny L.A.

Offline

#12 2015-02-08 11:53:04

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

Re: Custom CSS not working

did you remember to change the name of the exported phplugins-sample folder to phplugins?

where did you upload your phplugins folder?


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#13 2015-02-08 11:55:18

hursey
Member
From: Los Angeles
Registered: 2012-12-07
Posts: 113
Website

Re: Custom CSS not working

I have deleted "sample" from the folder name within the specific gallery... I also have the same folder in the parent or main directory which I am using, I have placed the revised php doc in both.


Sitting Pretty in Sunny L.A.

Offline

#14 2015-02-08 11:55:43

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

Re: Custom CSS not working

ah. Just found your phplugins folder.
this should be the server path: /home3/hurseyco/public_html/clients/phplugins


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#15 2015-02-08 11:58:06

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

Re: Custom CSS not working

if you're using a global phplugins.php file then you don't need to modify the phplugins.php file in the gallery. All you need to do is modify the globally used file, which is in your /clients/phplugins/ folder


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#16 2015-02-08 12:01:53

hursey
Member
From: Los Angeles
Registered: 2012-12-07
Posts: 113
Website

Re: Custom CSS not working

THERE we go! Sorry & Thank You! Same goes if I use publisher and templates? Just make sure that path is in each template then I am good to go? (Could you also direct me to where I can find out how to insert head tags / metadata?)

Last edited by hursey (2015-02-08 12:07:48)


Sitting Pretty in Sunny L.A.

Offline

#17 2015-02-08 12:02:43

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

Re: Custom CSS not working

yep. use the same server path in all templates


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

#18 2015-02-08 12:12:46

hursey
Member
From: Los Angeles
Registered: 2012-12-07
Posts: 113
Website

Re: Custom CSS not working

Thanks Rod!! Could you also direct me to where I can find out how to insert head tags / metadata?

Last edited by hursey (2015-02-08 12:16:46)


Sitting Pretty in Sunny L.A.

Offline

#19 2015-02-08 12:28:44

Daniel Leu
Moderator
Registered: 2012-10-11
Posts: 1,624
Website

Re: Custom CSS not working

That's in the Site Info section under Page Setup of the Lr plugin.


Daniel Leu | Photography   
DanielLeu.com
My digital playground (eg, Backlight tips&tricks): lab.DanielLeu.com

Offline

#20 2015-02-08 14:41:03

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

Re: Custom CSS not working


Rod 
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site

Offline

Board footer

Powered by FluxBB