-
AuthorPosts
-
February 2, 2017 at 5:54 pm #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
February 2, 2017 at 5:57 pm #741943Hi!
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!
YigitFebruary 2, 2017 at 9:24 pm #742030Perfect! 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.February 3, 2017 at 3:27 pm #742400Hi,
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,
YigitMarch 9, 2017 at 2:36 pm #758366Hi,
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
March 9, 2017 at 2:37 pm #758367Hey!
@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 wellBest regards,
YigitApril 10, 2017 at 6:06 pm #775576by 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
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 pagePPS: 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
April 10, 2017 at 6:45 pm #775587June 12, 2017 at 12:14 pm #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 !June 13, 2017 at 1:55 pm #807444June 21, 2017 at 11:38 pm #811234Hello @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.
June 23, 2017 at 10:48 am #812037here is the download again – description above – on how you use shortcodes on child-theme:
btw: i can not edit the thread above ? will be good to have the new link there too!
June 23, 2017 at 11:28 am #812049Thank you very much for the downloadlink !
You are great !June 23, 2017 at 12:19 pm #812065Hi,
Thanks for sharing again @Guenni007. I edited your post and updated download link :)
Best regards,
YigitJune 30, 2017 at 12:00 pm #814928Works – 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 !!!
June 30, 2017 at 1:23 pm #814946Hi,
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,
YigitJuly 12, 2017 at 9:14 am #819873so 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.
July 12, 2017 at 10:24 am #819899Hi,
Thanks for your input, Guenni!
Best regards,
SarahOctober 15, 2017 at 2:00 pm #864482Thanks 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!
October 15, 2017 at 6:20 pm #864520this 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-855641Be 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.
January 24, 2018 at 5:07 pm #902225Hi,
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 expectedJanuary 24, 2018 at 8:32 pm #902296Hi,
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,
MikeAugust 30, 2018 at 12:24 pm #1003511Hey 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.phpAugust 31, 2018 at 7:49 am #1003947Hi,
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,
IsmaelOctober 16, 2018 at 9:27 am #1022058Dear 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!October 16, 2018 at 5:13 pm #1022277Hi,
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,
IsmaelNovember 20, 2018 at 12:56 pm #1035569Do 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
November 21, 2018 at 11:05 am #1035971Hi,
@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,
IsmaelFebruary 19, 2020 at 2:39 pm #1186060Hi there,
the download of the shortcodes/alb elements do not work anymore. Could someone provide me the necessary file for download please?February 20, 2020 at 1:13 pm #1186329Hi,
@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.
Best regards,
Mike -
AuthorPosts
- The topic ‘Change Full Screen slider to h1 tag’ is closed to new replies.