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.
I have a page template solely for the cart (too bad I can't seem to use an album template). So it seems i'm constrained to using phplugins to add things to the page. I've been trying to stick some text in the page with the ttg_copy_top function but that doesn't seem to be working. Hook looks like this:
function ttg_copy_top( $style, $path ) {
echo 'Here is some text.';
return true;
} // END
Other hooks on the page are working.
No doubt something simple or stupid that I've done. A club on the head would be most helpful if anyone's got one.
Regards Mark
Whoops. Site is at https://photophart.com
Offline
You can assign an album template via the menu, Designer => Templates => Assign Templates.
Offline
My guess is that since the Cart page uses forms inside the copy area, that the ttg_copy_top and ttg_copy_bottom hooks are not active. This would keep the cart contents from accidentally being removed. Just a guess though.
What are you looking to add? If it's just text, you can use the Localizations page in Cart Settings.
Under the Shopping Cart section in the HEADING_CART field, you can change the text.
But since the HEADING_CART field puts the text in an H1 heading tag, the text will be sized at H1 size. To get around this, put your text inside a p tag. You'll need to style it though:
Your Cart <p style="font-size:1rem;">More text on page</p>
It looks like you can put any html in there. This works too:
Your Cart <div style="font-size:1em;"><p>More text on page</p></div>
Putting other html inside a heading tag may not be semantically correct, but it works.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline
if you only need to to his once, then the inline styling is probably easiest.
Rod
Just a user with way too much time on his hands.
www.rodbarbee.com
ttg-tips.com, Backlight 2/3 test site
Offline