How-to change alt-attribute in ANIga thumb page (2 posts)

  1. Jeroen
    Posted 7 years ago #


    I am using the WP-plugin ANIga gallery v0.30 to show photos on my website.

    Default this plugin shows the filename as alt for the pictures. I want to use the caption instead, and add a title attribute to it. I managed to do this for the photo page. But I cannot get the thumbs page to work, because the code is a bit different.

    Here is a link to the functions.php. I guess I need to change this part of the code:

    function thumbpics() {
    		global $aniga, $aniga_lang;
    		$album = $this->album;
    		$col = 1;
    		$col_count = get_option('anigal_colums');
    		$thumbs = $aniga->getthumbs($album->alb_id, $this->page['page_start'], $this->page['page_end']);
    		foreach ($thumbs as $pic) { 
    			if ($col == 1) : ?>
    			<?php endif; ?>
    			<td align="center" valign="middle" class="gallery_thumb_td"><a href="<?php echo anigal_get_permalink($this->id, $pic->pid, 'pid'); ?>"><img src="<?php echo $pic->path . 'thumb_' . $pic->filename; ?>" class="gallery_pic_border" alt ="<?php echo $pic->filename; ?>" /></a>

    I tried replacing the $pic->filename with $pic->caption or title, (you can find that in the last line of the above code) but that doesn't work.

    Here is a link to a thumb page, so you can see the code of that also: http://www.akershoek.com/wp/recent-photos/

    Can someone help me solve this?

    Best regards,
    Jeroen Akershoek

  2. Jeroen
    Posted 7 years ago #

    Anyone who can help me with this question?

    Thanks, Jeroen

Topic Closed

This topic has been closed to new replies.

About this Topic