Tagged: slider
-
AuthorPosts
-
May 3, 2018 at 6:12 pm #950985
Hello,
since the new release, My sliders have change, and even sometime they don’t appear
https://letempledelafemme.fr/ – The text and button don’t appear
https://clarisse-sculptures.com/ – don’t appear at allI had to remove this code witch was helpfull to have H1-H2 selection
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;
}
function replace_tags_with_tags(){
?>
<script>
(function( $ ) {
$(document).ready(function() {
function replaceElementTag(targetSelector, newTagString) {
$(targetSelector).each(function(){
var newElem = $(newTagString, {html: $(this).html()});
$.each(this.attributes, function() {
newElem.attr(this.name, this.value);
});
$(this).replaceWith(newElem);
});
}replaceElementTag(‘h3.widgettitle’, ‘<h4></h4>’);
});
}(jQuery));
</script>
<?php
}
add_action(‘wp_footer’, ‘replace_tags_with_tags’);So what can i do to have the possibilité to have the H1-H3 tag on the slider
ThanksMay 3, 2018 at 6:26 pm #950990i remove the code in my function, the picture appears, but i can tag H1-H3
May 3, 2018 at 7:21 pm #951019well i guess you are one of those who uses my edited alb elements. Link
it seems that there are some changings on 4.3 (and 4.3.1) so please download the zip-file again from my page and have a look if this will be than ok:
https://webers-testseite.de/Slideshows.zipSorry but i need a little time to edit them
see result: https://webers-testseite.de/cynthia/slideshows/May 3, 2018 at 7:24 pm #951020By the way: this code here is to replace the parent ALB with the Child-Theme ALB:
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; }
the other code is to dynamically replace some tags – and has nothing to do with the caption title tags
function replace_tags_with_tags(){ ?> <script> (function($) { function replaceElementTag(targetSelector, newTagString) { $(targetSelector).each(function(){ var newElem = $(newTagString, {html: $(this).html()}); $.each(this.attributes, function() { newElem.attr(this.name, this.value); }); $(this).replaceWith(newElem); }); } replaceElementTag('h3.widgettitle', '<h4></h4>'); // hier kann man nun weitere anfügen immer durch semicolon getrennt }(jQuery)); </script> <?php } add_action('wp_footer', 'replace_tags_with_tags');
May 3, 2018 at 8:40 pm #951075yes it was already your code @guenni007. I try and i let you know.
You are really top
thanksMay 3, 2018 at 8:50 pm #951083i copied this in my function.php of the child theme
add_action( ‘wp_enqueue_scripts’, ‘wp_change_shortcodesjs’, 100 );
function wp_change_shortcodesjs() {
wp_deregister_script( ‘avia-shortcodes’ );
wp_enqueue_script( ‘avia-shortcodes-child’, get_stylesheet_directory_uri().’/js/shortcodes.js’, array(‘jquery’), 2, true );
}
And i don’t have anymore the picture in the slider.
http://www.clarisse-sculptures.com
I might do something wrong.
I copoed the file under child theme / shortcodesMay 4, 2018 at 12:55 am #951173oh – so sorry – that was my fault. ( i edit it above too)
erase the functions.php code you have inserted – that was to substitute the shortcodes.js file:
this is the code you need to substitute the shortcodes. – yes the place you uploaded them was correct.
Sometimes you have to edit those sliders again – just open and save.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; }
May 4, 2018 at 3:12 am #951204Guenni007 I have noticed on 4.3.1 sometimes the sliders appear fine and other times they don’t appear at all. It seems random… sometimes reloading page fixes it…. until it breaks again. Is this what you are seeing?
May 4, 2018 at 8:27 am #951432no – I have not observed that yet. Yes the starting of selfhosted video was a problem too – but on my av-helper-slideshow.php the fix was integrated already.
I thought that irdh has one of my edited alb elements used – and after update the code was changed so much that the old version does not do what was intended to do.
I have always a little time-shift between these changings but they will come soon as alway here: https://webers-testseite.de/edited-enfold-alb-elements/actually I think it’s a pity that these small improvements are not taken over into the code, because for example I think it makes sense to determine the h-tag in the captions, or on icon-box or icon-list element.
Or to have an anchor alternative to the color section. So i made my hr with ID Option – this could be even used when sidebar is active.May 4, 2018 at 9:30 am #951462@Guenni007 thank you, i will try.
*I aggree with you, i think it is a pity for SEO purpose and Hierrachie that we can’t set up H tag in slider and Icon because it seems for me more easy to do when i create a website and i draw the hierarchie first.May 4, 2018 at 9:43 am #951467@guenni007 – seems to work on the back office, but not yet on the front, i will check.
for the code that you gave us also for the Icons before th release of 4.3.1 . Is it still working with this new release ?, i haven’t check yetThanks
May 4, 2018 at 4:42 pm #951761i’m now on my first test-page : https://webers-testseite.de at Enfold 4.3.1
and only the sliders got into conflict with the old versions – seems to fit for icon-list, icon-box -
AuthorPosts
- You must be logged in to reply to this topic.