Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #487217

    hi
    i had this fix applied:
    https://kriesi.at/support/topic/making-title-visible-on-gallery-without-rollover/

    but when updating the theme, the rollovers re-appeared (still have the titles below the thumbnails, so that part is ok)

    thanks

    #487765

    Hey Paul!

    Please re-apply the change and then refer to this thread – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/ and move modified file to your child theme.

    Cheers!
    Yigit

    #489713

    thanks, but the issue wasn’t getting the shortcode to work. the shortcode is working, because it put the title of the image below the thumbnail. however when used in the previous version of the theme, the shortcode also deleted the rollover affect. since updating the theme, the rollover is still appearing.

    thanks
    paul

    #490106

    Hi!

    that why Yigit suggested to use a child theme. Are you using one? if not every change you implemented to the theme files will be overwritten when updating. A tutorial on how to use a child theme: http://kriesi.at/documentation/enfold/using-a-child-theme/

    Cheers!
    Andy

    #490942

    andy

    can you please clarify this statement in more detail:
    If you copy an element from enfold>config-templatebuilder>avia-shortcodes to this folder it will replace the one in the parent and be used instead.

    what is considered an element? tried copying just the altered code that i was given:
    $thumbs .= ” ".$alt."<div class=’color-title’>”.$title.”</div>“;
    $first = false;
    }
    but that blew up the page

    i copied over the entire altered gallery.php file, but i don’t know how that will play out when you update the theme

    while it seems to be working, i am still having the issue that i originally sent this request in for, and that is that i’m trying to get rid of the title showing in a caption balloon on rollover.

    thanks
    paul

    #491771

    Hey!

    Try removing $tooltip from that line:

    $thumbs .= " <a href='".$link[0]."' data-rel='gallery-".self::$gallery."' data-prev-img='".$prev[0]."' {$class} data-onclick='{$counter}' title='".$description."' $markup_url><img src='".$img[0]."' width='".$img[1]."' height='".$img[2]."'  title='".$title."' alt='".$alt."' /><span class='img-title'>".$title."</span></a>";
    

    Best regards,
    Josue

    #493071

    thanks, but in addition can you clarify this statement in more detail:
    If you copy an element from enfold>config-templatebuilder>avia-shortcodes to this folder it will replace the one in the parent and be used instead.

    do i need to copy the entire gallery.php page and make my alterations to it or is there a way to just enter the changes?

    thanks
    paul

    #493229

    Hey Paul,

    Refer to this article:
    http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/

    You need to:
    1. Place your modified version of the ALB element somewhere in your child theme directory.
    2. Place this code in your child functions.php.

    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
    	$template_url = get_stylesheet_directory();
        	array_unshift($paths, $template_url.'/shortcodes/');
    
    	return $paths;
    }

    Best regards,
    Josue

    #493236

    that is the article that i was referring to in my question.

    what exactly is the ALB element? once i create the directory, then what are the exact steps for replacing the function?

    #493287

    1. Create a copy of /config-templatebuilder/avia-shortcodes/gallery.php in /child-theme/shortcodes/
    2. Put the following code in your child theme functions.php:

    add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1);
    function avia_include_shortcode_template($paths)
    {
    	$template_url = get_stylesheet_directory();
        	array_unshift($paths, $template_url.'/shortcodes/');
    
    	return $paths;
    }

    3. Modify your child gallery.php as needed, #491771.

    ALB stands for Advanced Layout Builder, the Enfold page builder you see on the Page edit screen.

    Regards,
    Josue

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.