Advanced search  


cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.

Pages: [1]   Go Down

Author Topic: Add class to tableh1 in template.html  (Read 2085 times)

0 Members and 1 Guest are viewing this topic.


  • Coppermine newbie
  • Offline Offline
  • Posts: 4
Add class to tableh1 in template.html
« on: February 25, 2023, 10:06:35 pm »

In my theme I have styled tableh1, but I don't want the album information (4 albums on 1 pages(s) ) to take the tableh1 styling. How can I add a class within that specific tableh1 in the template.html?

What I want:
Code: [Select]
<td class="tableh1" style="white-space: nowrap" width="100%" valign="middle" align="left"><span class="info">[/b]4 albums on 1 page(s)</span>[/b]</td>

Joe Carver

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 1539
  • aka 'i-imagine'
    • Home Page
Re: Add class to tableh1 in template.html
« Reply #1 on: February 28, 2023, 11:43:04 pm »

That change would be done in the file themes/YourTheme/theme.php.

Review some of the docs before starting -

In the file themes/sample/theme.php find this section to copy whole into your theme.php
Code: [Select]
** Section <<<$template_tab_display>>> - START

** Section <<<$template_tab_display>>> - END

Make the changes as you wish to the line:
Code: [Select]
    'left_text'         => '<td width="100%%" align="left" valign="middle" class="tableh1" style="white-space: nowrap">{LEFT_TEXT}</td>' . $LINEBREAK,
Note that the changes can affect other places where left text is used

Pages: [1]   Go Up

Page created in 0.017 seconds with 19 queries.