Viewing 30 posts - 1 through 30 (of 33 total)
  • Author
    Posts
  • #741940

    Hi there
    We are using a full screen slider on the top of our site. I would like to change the H2 built in tag to a H1. Is this possible?

    For example:

    <h2 style=”font-size:40px; ” class=”avia-caption-title” itemprop=”name”>Slider heading here</h2>

    Thanks

    #741943

    Hi!

    Please go to enfold/config-templatebuilder/avia-shortcodes/av-helper-slideshow.php file and find

    
    					if(trim($title) != "")   $title 	= "<h2 {$title_styling} class='avia-caption-title' $markup_name>".trim(apply_filters('avf_slideshow_title', $title))."</h2>";

    and change it to

    
    					if(trim($title) != "")   $title 	= "<h1 {$title_styling} class='avia-caption-title' $markup_name>".trim(apply_filters('avf_slideshow_title', $title))."</h1>";

    We would recommend you to use a child theme – http://kriesi.at/documentation/enfold/using-a-child-theme/ and refer to this post – http://kriesi.at/documentation/enfold/add-new-or-replace-advanced-layout-builder-elements-from-child-theme/ to make your changes update proof.

    Cheers!
    Yigit

    #742030

    Perfect! But it didnt work with the child theme.
    Only the parent.
    I added the shortcodes folder as well to the child theme and it doesnt work.

    #742400

    Hi,

    It should have worked. If you do not mind, please post FTP and WP admin logins here privately if you would like us to look into it :)

    Best regards,
    Yigit

    #758366

    Hi,

    I go to enfold/config-templatebuilder/avia-shortcodes/av-helper-slideshow.php to change h2 tag laki you comment, but it doesnt work. It’s the version 3.8 enfold. I’m using the Easy Slider Fullwith. Can you help me? Thanks

    #758367

    Hey!


    @pentasys
    Please start a new thread and attach temporary WP admin logins and FTP logins so we can look into it. If you post them here, they will be visible to creator of this thread as well

    Best regards,
    Yigit

    #775576

    by the way – from an old thread https://kriesi.at/support/topic/h1-avia-caption-title/
    i changed the three shortcodes slideshow_fullscreen, slideshow_fullsize and av-helper-slideshow (all phps comes to child-theme / shortcodes folder)
    on those edited elements you got the choice to have h1 to h6 on those headings.

    this comes to functions.php of child-theme:

    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;
    }

    Download is still there: archive.zip

    Click to enlarge:

    so you can setup the first slide with h1 , and the following slides to h2 etc.
    don’t know how google reacts if there is more than one h1 on page

    PPS: on both fullscreen-slider , fullwidth-slider i let the standard to h2

    • This reply was modified 7 years, 4 months ago by Yigit. Reason: Updated download link
    #775587

    Hi!


    @guenni007
    Thanks a lot for sharing! :)

    Regards,
    Yigit

    #806831

    @guenni007 Great solution !
    But the link “Download is still there: archive.zip” (http://webers-testseite.de/ikom/archive.zip) is dead.
    It will be a great help if you put the archive.zip somewhere else for downloading ?
    Thank you very much !

    #807444

    Hi,

    We will ask @guenni007 in his own threads. Hopefully he can help further :)

    Best regards,
    Yigit

    #811234

    Hello @Guenni007,

    Is it possible for you to activate your link to the archive.zip of your solution of Change Full Screen slider to h1 tag ?
    I will be very thankfull !!

    • This reply was modified 7 years, 5 months ago by qqdit.
    #812037

    here is the download again – description above – on how you use shortcodes on child-theme:

    Download

    btw: i can not edit the thread above ? will be good to have the new link there too!

    #812049

    Thank you very much for the downloadlink !
    You are great !

    #812065

    Hi,

    Thanks for sharing again @Guenni007. I edited your post and updated download link :)

    Best regards,
    Yigit

    #814928

    Works – after I realized that I had to copy the files into the directory /enfold-child/shortcodes

    and NOT into: /enfold-child/config-templatebuilder/avia-shortcodes

    THANK YOU !!!

    #814946

    Hi,

    Glad it worked for you! :)

    We will keep the thread open and will wait to hear from the creator of this thread. If you have any other questions or issues, please feel free to start a new thread.

    Best regards,
    Yigit

    #819873

    so now brave new world on Enfold 4.1 with the new oportunity to choose the mobile behavior on so many elements – here is an update to my edited shortcodes – so only necessary if you are using the newest version Enfold 4.1:

    Download only for Enfold 4.1 ff

    Again – make familiar with child-theme
    These files goes to child-theme/shortcodes folder and than put in functions.php of your child-theme :

    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;
    }
    • This reply was modified 7 years, 4 months ago by Guenni007.
    #819899

    Hi,

    Thanks for your input, Guenni!

    Best regards,
    Sarah

    #864482

    Thanks a lot guenni, this is really helpful. Can this be a standard feature of the theme? I have been looking through many posts on the same subject and this one finally shows a working solution. Please consider!

    #864520

    this is not my decision.
    not only the heading tag here but especialy the hr with id input field i think is a good idea. Because as an anchor point inbetween a page with sidebars active.
    Download or pastebin on this thread https://kriesi.at/support/topic/jumping-to-anchors-from-other-pages-doest-work-well/#post-855641

    Be careful there is in the moment an old hr before Enfold 4.1 and a new one with screenoptions. Both pastebins or downloads are in the thread.

    #902225

    Hi,
    Strange!! I can add the list of H1..H6
    but when I use the browser inspector or view source to see how the elements .
    it doesn’t work as i expected

    #902296

    Hi,
    Can you please provide more information so that will have some context, such as the URL to a sample page and the CSS code that you’re using.

    Best regards,
    Mike

    #1003511

    Hey Guenni007,
    thanks for your solution.
    One Question: This 3 php files should be placed in the following child-theme directory?
    themes/enfold-child/config-templatebuilder/avia-shortcodes/av-helper-slideshow.php

    #1003947

    Hi,

    You have to create a folder called “shortcodes” inside the child theme directory and then put the shortcode files (e.g: av-helper-slideshow.php) that you want to override inside.

    Best regards,
    Ismael

    #1022058

    Dear Enfold Team
    Could you make this a default permanent feature?
    Since the Slider is usually the first element on the website changing the title to H1 makes a lot of sense.
    Thank you for your consideration!

    #1022277

    Hi,

    I’m not sure if this is going to be considered as a permanent feature because not every page contains a slideshow and not every site using the theme disables the default title and breadcrumb container, which contains the main h1 title tag.

    Best regards,
    Ismael

    #1035569

    Do not work for me. I have added this in child function.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;
    }

    add folder under /mychild/shortcodes/

    add slideshow_fullscreen.php, slideshow_fullsize.php and av-helper-slideshow.php

    https://www.allevamentodiconiglinani.it/

    #1035971

    Hi,


    @unicaweb
    : We’ll close this thread now. Please create a new thread with the site url and the login credentials. Make sure that the site is running on version 4.5 and that the Appearance > Editor panel is accessible.

    Best regards,
    Ismael

    #1186060

    Hi there,
    the download of the shortcodes/alb elements do not work anymore. Could someone provide me the necessary file for download please?

    #1186329

    Hi,

    @dondela
    as I understand it the custom files @Guenni007 created do not work anymore because of changes to Enfold a couple of updates ago and there is a new option in Enfold for setting the H tag.
    2020-02-20-061243

    Best regards,
    Mike

Viewing 30 posts - 1 through 30 (of 33 total)
  • The topic ‘Change Full Screen slider to h1 tag’ is closed to new replies.