-
AuthorPosts
-
January 22, 2019 at 1:42 pm #1057187
Dear Enfold Team and Community
My timeline milestone Date is h2 Tag and my milestone Title is h3 tag: I don’t want to have h2 and h3 tags. Can I delete this with a CSS command?
I have the following setting:
avia-timeline-vertical av-milestone-placement-left avia-timeline-boxshadowUnfortunately, my page is still in draft form.
I hope someone can help me?
Many regards
UlliJanuary 22, 2019 at 4:24 pm #1057286Hey Ulli,
Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
- Install and activate ” Temporary Login Without Password “.
- Go to ” Users > Temporary Logins ” on the left-side menu.
- Click ” Create New “.
- Add the email address for the account ( you can use (Email address hidden if logged out) ), as well as the ” Role ” making that the highest possible and the expiry about four days
( do be sure that we have enough time to debug ). - Click ” Submit “.
- You’ll now have a temporary account. Please provide us here in the private section the URL, so we can login and help you out.
When your issue is fixed, you can always remove the plugin!
If you prefer to not use the plugin, you can manually create a admin user and post the login credentials in the “private data” field.
And give us the title of the page so we can check.Best regards,
NikkoApril 30, 2019 at 4:55 pm #1095817This reply has been marked as private.April 30, 2019 at 6:15 pm #1095827This reply has been marked as private.May 2, 2019 at 11:44 am #1096437This reply has been marked as private.May 4, 2019 at 4:57 pm #1097251Hi Ulli,
We apologize for the delayed response.
There’s no way for this to be changed via css, the only way however is to replace the Timeline element.
Since you already have a child theme, the next step is to do this: https://kriesi.at/documentation/enfold/intro-to-layout-builder/#add-elements-to-alb
You’ll need to modify timeline.php in wp-content > themes > enfold > config-templatebuilder > avia-shortcodes > timeline folder.
Find this code (line 1042-1050, in version 4.5.6):$date_wrapper = array( 'start' => "<h2 class='av-milestone-date{$av_title_font_classes}' {$date_styling} id='milestone-{$title_sanitized}'><strong>", 'end' => "</strong></h2>", ); if (in_array($atts['linkelement'], array('all', 'both', 'date_head')) && !empty($atts['link']) ) { $date_wrapper['start'] = "<h2 class='av-milestone-date{$av_title_font_classes}' {$date_styling} id='milestone-{$title_sanitized}'><a title='" . esc_attr($linktitle) . "' href='{$atts['link']}' {$linktarget}>"; $date_wrapper['end'] = "</a></h2>"; }
Just replace those h2, then few lines below it (line 1065-1073) find:
$headline_wrap = array( 'start' => "<h4 {$title_styling}{$title_class}>", 'end' => "</h4>" ); if (in_array($atts['linkelement'], array('all', 'icon_head', 'date_head')) && !empty($atts['link']) ) { $headline_wrap['start'] = "<h4 {$title_styling}{$title_class}><a title='" . esc_attr($linktitle) . "' href='{$atts['link']}' {$linktarget}>"; $headline_wrap['end'] = "</a></h4>"; }
just replace the h4, hope this helps.
Best regards,
NikkoMay 6, 2019 at 10:04 am #1097628This reply has been marked as private.May 6, 2019 at 10:50 am #1097654Hi Ulrich1961,
Sure, can you give us ftp access?
And can you tell us what you want to replace h2 and h4 with?Best regards,
NikkoMay 7, 2019 at 8:48 am #1097995This reply has been marked as private.May 7, 2019 at 5:46 pm #1098142Hi Ulli,
Sure, just post back here and we’ll help with it :)
Best regards,
NikkoMay 7, 2019 at 6:51 pm #1098165you can use the new filter: avf_customize_heading_settings
to set the heading tag on that. I do not know it it is possible to change for the years a different heading than for the heading on text.
this comes to child-theme functions.phpfunction my_avf_customize_heading_settings( array $args, $context, array $extra_args = array() ){ if( $context == 'avia_sc_timeline' ){ $args['heading'] = 'h1'; // change heading from h3 to h1 $args['extra_class'] = 'my-timeline-class'; // add an extra class for styling } return $args; } add_filter( 'avf_customize_heading_settings', 'my_avf_customize_heading_settings', 10, 3 );
you can even use p tag or something else
you only have to give that costom class to the timeline alb element ( in this case: my-timeline-class)
PS : alot of the alb elements got this filter now. so only a custom class and the selector is needed to change heading tag.
May 7, 2019 at 7:04 pm #1098168ps : if you like to change both : look for the extra args in alb element (search for that filter: avf_customize_heading_settings)
f.e. in timeline.php a little above that filter there is the default setting defined like:$default_heading = 'h2'; $args = array( 'heading' => $default_heading, 'extra_class' => '' ); $extra_args = array( $this, $atts, $content, 'date' );
here the extra_arg is : date
____________ so changing both with different tags _________________
function my_avf_customize_heading_settings( array $args, $context, array $extra_args = array() ) { if( 'avia_sc_timeline' == $context && is_array( $extra_args ) && in_array( 'date', $extra_args ) ) { $args['heading'] = 'h1'; $args['extra_class'] = 'my-timeline-class'; } if( 'avia_sc_timeline' == $context && is_array( $extra_args ) && in_array( 'title', $extra_args ) ) { $args['heading'] = 'h3'; $args['extra_class'] = 'my-timeline-class'; } return $args; } add_filter( 'avf_customize_heading_settings', 'my_avf_customize_heading_settings', 10, 3 );
the code above changes all headings – with extra args you can be more specific
May 7, 2019 at 7:07 pm #1098170by the way : standard default is h2 and h4 – so what version on enfold do you use?
And : thanks to Günter for detailed Info about that new filter ( you only have to ask for it ;) )
By the way the context is the alb element itself : open the alb element and look on top of each alb: there will be somenting like this:
if ( ! class_exists( 'avia_sc_timeline' ) ) { class avia_sc_timeline extends aviaShortcodeTemplate
so context on this case is : avia_sc_timeline
May 8, 2019 at 10:15 am #1098404Hi!
@Guenni007 Thanks a lot for this clear and good explanation of the filter.I hope the explanation above helps you.
Best regards,
GünterMay 9, 2019 at 8:23 pm #1099050This reply has been marked as private.May 13, 2019 at 9:14 am #1099948This reply has been marked as private.May 16, 2019 at 8:28 am #1101327Hi Ulrich1961,
Thanks for providing ftp access.
It’s already changed.Best regards,
NikkoMay 17, 2019 at 11:33 am #1101731Hi Nikko,
what an amazing Support! Great and thank you!
Best regards
UlliMay 17, 2019 at 1:00 pm #1101780 -
AuthorPosts
- The topic ‘Timeline Milestone h2 and h3 Tags – how can I delete?’ is closed to new replies.