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 2016-05-06 05:42:13

charles_i
Member
From: Toronto Canada
Registered: 2013-07-24
Posts: 104

custom.css - where do I put it to globally affect all galleries

All of my galleries use the same design with some minor individual changes.  I want to reduce the size of the cell numbers in all the galleries in ttg-be/templates/gallery/ which I know is this:

.cellnumber {
    font-size:20px !important;
    padding-left:2px !important;
}

I want to have this affect all galleries globally.  I've removed the comments for this and uploaded it to:
/ttg-be/templates/gallery/crg-default/phplugins

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

and uploaded the custom.css file here:
/ttg-be/templates/gallery/crg-default/phplugins/css

Not working.  What do I need to do to get it to work?

Thanks
Charles

Last edited by charles_i (2016-05-06 05:43:27)

Offline

#2 2016-05-06 05:50:31

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

Re: custom.css - where do I put it to globally affect all galleries

Custom css usually goes into a custom.css file that you place in the /phplugins/css/ folder

If you haven't done it already, you'll need to enable phplugins site-wide: http://ce4.theturninggate.net/docs/doku … _phplugins
and then enable custom css: http://ce4.theturninggate.net/docs/doku … custom_css

To affect all galleries, you'll need to enter the server path into each gallery, export, and upload at least the index.php files for each gallery (if the gallery is paginated, be sure to upload all index.php, index2.php, etc.

If you're using Publisher, just enter the server path in the template, then export and upload the template again.


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 2016-07-08 00:47:46

charles_i
Member
From: Toronto Canada
Registered: 2013-07-24
Posts: 104

Re: custom.css - where do I put it to globally affect all galleries

Hi Rod,

I'm finally getting back to this.  For anyone else reading this thread, I finally got this to work - but in my case it would only work when I put in the full path with http:

function ttg_head_end( $style, $path ) {
    echo '
    <link rel="stylesheet" href="http://xxx.com/phplugins/css/custom.css" />
    ';
}

Charles

Last edited by charles_i (2016-07-08 00:48:47)

Offline

Board footer

Powered by FluxBB