Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Bold Description  (Read 9648 times)

0 Members and 1 Guest are viewing this topic.

thenota2

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 81
Bold Description
« on: December 15, 2017, 08:40:47 am »

could you show me how to bold just the description. all there is is <p> which bolds everything in a <p>. in case it would be needed, ive attached my theme
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Bold Description
« Reply #1 on: December 15, 2017, 02:07:02 pm »

Copy the $template_album_list section from include/themes.inc.php to your <theme>/theme.php file. Then make changes there as you desire.
http://documentation.coppermine-gallery.net/en/theme_theme_php.htm#theme_php_method

An aside:  You might want to reconsider using such an old theme as that ... have you viewed it on a mobile device?
« Last Edit: December 15, 2017, 02:12:45 pm by ron4mac »
Logged

thenota2

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 81
Re: Bold Description
« Reply #2 on: December 15, 2017, 03:13:36 pm »

i didnt have any money in my paypal to buy one, but i guess youre rite. i just started modifying this one, im obviously not good at making it look nice. ill try and figure the bold out and wait to get a theme. i sent 2 emails to coppermine specific theme makers but no reply
Logged

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Bold Description
« Reply #3 on: December 11, 2019, 09:29:53 am »

1) Paste in your_theme_name/theme.php the code below and change <p>{ALB_DESC}</p> to <p class="alb_desc">{ALB_DESC}</p>
Make sure the function is not already in your theme.php

Code: [Select]
/******************************************************************************
** Section <<<$template_album_list>>> - START
******************************************************************************/
// HTML template for the album list
$template_album_list = <<<EOT

<!-- BEGIN stat_row -->
        <tr>
                <td colspan="{COLUMNS}" class="tableh1" align="center"><span class="statlink">{STATISTICS}</span></td>
        </tr>
<!-- END stat_row -->
<!-- BEGIN header -->
        <tr class="tableb tableb_alternate">
<!-- END header -->
<!-- BEGIN album_cell -->
        <td width="{COL_WIDTH}%" valign="top">
        <table width="100%" cellspacing="0" cellpadding="0">
        <tr>
                <td colspan="3" height="1" align="left" valign="top" class="tableh2">
                        <span class="alblink"><a href="{ALB_LINK_TGT}">{ALBUM_TITLE}</a></span>
                </td>
        </tr>
        <tr>
                <td colspan="3">
                        <img src="images/spacer.gif" width="1" height="1" border="0" alt="" /><br />
                </td>
        </tr>
        <tr>
                <td align="center" valign="middle" class="thumbnails">
                        <img src="images/spacer.gif" width="{THUMB_CELL_WIDTH}" height="1" style="margin-top: 0px; margin-bottom: 0px; border: none;" alt="" /><br />
                        <a href="{ALB_LINK_TGT}" class="albums">{ALB_LINK_PIC}<br /></a>
                </td>
                <td>
                        <img src="images/spacer.gif" width="1" height="1" border="0" alt="" />
                </td>
                <td width="100%" valign="top" align="left" class="tableb tableb_alternate">
                        {ADMIN_MENU}
                        <p>{ALB_DESC}</p>
                        <p class="album_stat">{ALB_INFOS}<br />{ALB_HITS}</p>
                </td>
        </tr>
        </table>
        </td>
<!-- END album_cell -->
<!-- BEGIN empty_cell -->
        <td width="{COL_WIDTH}%" valign="top">
        <table width="100%" cellspacing="0" cellpadding="0">
        <tr>
                <td height="1" valign="top" class="tableh2">
                        &nbsp;
                </td>
        </tr>
        <tr>
                <td>
                        <img src="images/spacer.gif" width="1" height="1" border="0" alt="" /><br />
                </td>
        </tr>
        <tr>
                <td width="100%" valign="top" class="tableb tableb_alternate">
                    <div class="thumbnails" style="background-color:transparent"><img src="images/spacer.gif" width="1" height="1" border="0" class="image" style="border:0;margin-top:1px;margin-bottom:0" alt="" /></div>
                </td>
        </tr>
        </table>
        </td>
<!-- END empty_cell -->
<!-- BEGIN row_separator -->
        </tr>
        <tr class="tableb tableb_alternate">
<!-- END row_separator -->
<!-- BEGIN footer -->
        </tr>
<!-- END footer -->
<!-- BEGIN tabs -->
        <tr>
                <td colspan="{COLUMNS}" style="padding: 0px;">
                        <table width="100%" cellspacing="0" cellpadding="0">
                                <tr>
                                       {TABS}
                                </tr>
                        </table>
                </td>
        </tr>
<!-- END tabs -->
<!-- BEGIN spacer -->
        <img src="images/spacer.gif" width="1" height="7" border="" alt="" /><br />
<!-- END spacer -->

EOT;
/******************************************************************************
** Section <<<$template_album_list>>> - END
******************************************************************************/

2) in your_theme_name/style.css

paste

Code: [Select]
.alb_desc,.album_stat {font-weight:bold;}
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 21 queries.