Tagged: ,

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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 all

    I 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
    Thanks

    #950990

    i remove the code in my function, the picture appears, but i can tag H1-H3

    #951019

    well 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.zip

    Sorry but i need a little time to edit them
    see result: https://webers-testseite.de/cynthia/slideshows/

    #951020

    By 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');
    #951075

    yes it was already your code @guenni007. I try and i let you know.
    You are really top
    thanks

    #951083

    i 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 / shortcodes

    #951173

    oh – 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;
    }
    #951204

    Guenni007 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?

    #951432

    no – 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.

    #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.

    #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 yet

    Thanks

    #951761

    i’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

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.