-
AuthorPosts
-
August 13, 2015 at 2:44 pm #487217August 14, 2015 at 2:02 pm #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!
YigitAugust 18, 2015 at 8:40 pm #489713thanks, 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
paulAugust 19, 2015 at 3:03 pm #490106Hi!
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!
AndyAugust 20, 2015 at 5:31 pm #490942andy
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 .= ” <div class=’color-title’>”.$title.”</div>“;
$first = false;
}
but that blew up the pagei 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
paulAugust 22, 2015 at 11:27 pm #491771Hey!
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,
JosueAugust 25, 2015 at 4:41 pm #493071thanks, 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
paulAugust 25, 2015 at 9:55 pm #493229Hey 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,
JosueAugust 25, 2015 at 10:27 pm #493236that 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?
August 26, 2015 at 4:40 am #4932871. 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 -
AuthorPosts
- You must be logged in to reply to this topic.