Forum Replies Created
-
AuthorPosts
-
Use instead of the img container a code block alb. Why – are these svgs you want to use as inline svg with inside animations / hover states etc ?
if they all got the same view-box size ( or at least the same aspect ratio ) this could be done.
But to speculate further here would be unproductive. Either show what kind of “images” you are talking about, or a link to the corresponding page.See Testpage again with ( now sorry they do not have the same size as the images ) : https://webers-testseite.de/4inarow/
hover the svgsthis is my Advance Layout for it:

- give a custom class to the color section f.e. : four-in-a-row
- you can put as many 1/4 Containers in it you like.
- BUT: ever first 1/4 column in it – you had to set the no-margin ( no space between the columns) option again
- The Containers 1/4 : no distance but indivual height
- put in each 1/4 container an image , a heading , a textblock
- the images are pure images – you can animate them if you like
- the images should have the same dimensions!
put this to your quick css:
.four-in-a-row .entry-content-wrapper { display: flex; flex-flow: row wrap; justify-content: space-between; } .four-in-a-row .entry-content-wrapper:before, .four-in-a-row .entry-content-wrapper:after, .four-in-a-row .entry-content-wrapper .flex_column:before, .four-in-a-row .entry-content-wrapper .flex_column:after { display: none } .four-in-a-row .entry-content-wrapper .flex_column { float: none; width: unset !important; padding: 0; margin: 0; flex: 0 1 25%; display: inline-flex; /*** the flex-item itself is a flex-container too ***/ flex-flow: column wrap; justify-content: stretch; } .four-in-a-row .entry-content-wrapper .flex_column .av-special-heading { padding: 0 !important; margin: 0; } .four-in-a-row .entry-content-wrapper .flex_column .av-special-heading, .four-in-a-row .entry-content-wrapper .flex_column .av_textblock_section { padding: 5px 20px !important; } @media only screen and (max-width: 989px) { .four-in-a-row .entry-content-wrapper .flex_column { flex: 0 1 33.33%; } } @media only screen and (max-width: 767px) { .four-in-a-row .entry-content-wrapper .flex_column { flex: 0 1 50%; } } @media only screen and (max-width: 480px) { .four-in-a-row .entry-content-wrapper .flex_column { flex: 1 1 100%; } }if you like to start with 6 images in a row – no problem :
start with
flex: 0 1 16.66%;see result: https://webers-testseite.de/4inarow/
is it the whole breadcrump ? including Title?
another thing : what if he has a transparency header – or a fullwidth-slider on top?it would be nice to have a filter on that to have breadcrumbs even on transparency header or slider on top. – Then place breadcrumb under it!
There is still on functions-enfold.php line 1192 :
if(!empty($transparency)) $header['header_title_bar'] = 'hidden_title_bar';February 5, 2021 at 12:55 pm in reply to: Hidden texts of social bookmark boxes below the boxes instead on top of them #1277966yes on avia.js line 32 :
you can enter postion:’bottom’ and the rest will be css – but maybe a mod knows a child-theme solution without having a whole avia.js on child-theme folder.new $.AviaTooltip({"class": 'avia-related-tooltip', data: 'avia-related-tooltip', position:'bottom', scope: ".related_posts, .av-share-box", attach:'element', delay:0});on line 1609 maybe that is enough to replace top with bottom – sadly this is not a pluggable function ( if function exists …) then it would be ease to have a child theme solution)
Sorry – hope ismael or günter knows how to.
February 5, 2021 at 12:27 pm in reply to: Hidden texts of social bookmark boxes below the boxes instead on top of them #1277962avia.js pos1 is for top positioning since lines: 1598 and on focus 1773ff
now it is to look if there could be a child-theme solution.
But on reading those lines – isn’t there a bottom position as option? ( Edit – no seems to be only for image with tooltip )February 5, 2021 at 12:21 pm in reply to: Hidden texts of social bookmark boxes below the boxes instead on top of them #1277960this is hard stuff – because it seems to be calculated values in the infinite vastness of the source code.
Maybe some of the Devs knows where to find.li.av-share-link:hover .avia-related-tooltip { transform: translateY(15px) !important; top: unset !important; margin-top: unset !important; } li.av-share-link:hover .avia-related-tooltip .avia-arrow-wrap { top: 0 !important; bottom: auto !important; transform: scaleY(-1) !important; }This quick css solution is an insufficient solution of the whole, because the original container initially appears for fractions of a moment at the top position.
February 5, 2021 at 11:54 am in reply to: Hidden texts of social bookmark boxes below the boxes instead on top of them #1277948can you show me a link to a demo page of enfold ( link ) where that is shown?
do you refer to those tooltips on hovering the share button? https://kriesi.at/themes/enfold-2017/elements/social-share-buttons/-
This reply was modified 5 years ago by
Guenni007.
February 5, 2021 at 11:32 am in reply to: Add custom widget after main content, but before sidebar #1277943maybe Günter could insert an extra class to that page ( similar to privacy-policy page ) which is set to be the footer-page
where then in fact the question would be how to rewrite the code so that it works with a class to body.
i tested of course !is_page(106) but even with the ID it does not work. so !is_page(‘kontact-section’) won’t work too.Thank you GrandmasterA for your addition to the if-clause.
Preventing something from emerging is definitely better here than just hiding it later.February 4, 2021 at 4:09 pm in reply to: Add custom widget after main content, but before sidebar #1277740hm – that is strange because if the footer-page is a page – then this content shouldn’t be affected.
you can do this to child-theme functions.php below the above code :
function remove_widget_area_from_footer_page(){ if (is_singular('post')) { ?> <script> (function($){ $(window).on('load', function () { $('#footer-page .avia-builder-widget-area').remove(); }); })(jQuery); </script> <?php }} add_action('wp_footer', 'remove_widget_area_from_footer_page');February 4, 2021 at 2:58 pm in reply to: Add custom widget after main content, but before sidebar #1277723This should work on both post with classic editor and posts with alb editor ( don’t know if it will work for Gutenberg):
add_filter('the_content', function($content) { if (is_singular('post')) { $content .= '[av_sidebar widget_area="my-sidebar-name"]'; } return $content; } );And if you got more than one widget in that widget area – you can play with flex layout to have those widgets besides each other :
#main .avia-builder-widget-area { display: flex; flex-flow: row wrap; justify-content: space-between; } #main .avia-builder-widget-area::before, #main .avia-builder-widget-area::after { display: none; } #main .avia-builder-widget-area .widget { padding: 0; margin-bottom: 30px; }February 4, 2021 at 2:19 pm in reply to: Add custom widget after main content, but before sidebar #1277710OK here is a code that should work:
add_filter('avf_template_builder_content', 'avf_template_builder_content_comment_mod' , 10 , 1); function avf_template_builder_content_comment_mod($content = "") { if(is_singular('post') || is_singular('portfolio')){ $sidebar_content = do_shortcode("[av_sidebar widget_area='my-sidebar-name']"); $content = $content . $sidebar_content ; } return $content; }remove the or portfolio clause if you do not want to include them!
But the existing shortcode is only for those post/portfolios when they are made by Advanced Layout BuilderFebruary 4, 2021 at 2:13 pm in reply to: Add custom widget after main content, but before sidebar #1277707thats the reason why i erased it. ( All code goes to child-theme functions.php )
i thought that we can use another filter of enfold:
but thisadd_filter('avf_template_builder_content', 'avf_template_builder_content_comment_mod' , 10 , 1); function avf_template_builder_content_comment_mod($content = "") { if(is_singular('post') || is_singular('portfolio')){ $sidebar_content = dynamic_sidebar( 'my-sidebar-name' ); $content = $content . $sidebar_content ; } return $content; }inserts the widget area before ( allthough it is
$content = $content . $sidebar_content) content. ?
Sorry – you had to wait for a modFebruary 4, 2021 at 1:26 pm in reply to: Add custom widget after main content, but before sidebar #1277691maybe a mod knows a better way – you can do it with wordpress standard functions this way:
( you don’t need to insert that dynamic side bar manually – it is done by that code allready)just a moment – the given code is not totaly correct – it works but it is not at the end of content in all cases – sorry
-
This reply was modified 5 years ago by
Guenni007.
February 4, 2021 at 12:42 pm in reply to: Add custom widget after main content, but before sidebar #1277670The hook determines only the place where it is inserted.
Did you create that widget-area at Widgets : “my-sidebar-name” ?Are these single posts created with classic editor or with advanced Layout Builder ?
Try one post with classic editor!
February 4, 2021 at 12:26 pm in reply to: Add custom widget after main content, but before sidebar #1277667try a different if-clause !
add_action( 'ava_after_content', 'enfold_customization_category_widget_area' ); function enfold_customization_category_widget_area() { if (is_singular('post')) { dynamic_sidebar( 'my-sidebar-name' ); } }or use:
if(is_single()){if you like to have that on portfolio too use:
if(is_singular('post') || is_singular('portfolio')){On your testpage this is an animated svg logo.
You can do that with stroke-dasharray – read f.e. :
https://css-tricks.com/svg-line-animation-works/
https://www.cassie.codes/posts/creating-my-logo-animation/All animation is inside the svg itself ;)
https://webers-webdesign.de/Logo-animiert.svg
or see https://webers-testseite.de/pureinstall/signieren/
on my Signature the stroke-dasharray is used as a mask over the given letters.
But ! you have to read and study intensively how to obtain those svgs. F.e. you had to know the stroke-dashoffset etc. pp.my code is the same Ismael posted – only the icon is replaced
A description where something is changed is always a bit more complicated than posting the whole replacement code.I do not see your site – so it is difficult to give detailed advice
if you replace the second part by:
add_action('wp_footer', 'avf_add_search_script'); function avf_add_search_script(){ ?> <script type="text/javascript"> (function($) { $('.av-burger-menu-main').on('click', function() { var page = window.location.href; var mobile = $('.menu-item-search-mobile'); var search = '<form action="'+page+'" method="get" class=""><div><input type="submit" value="" id="searchsubmit" class="button avia-font-entypo-fontello"><input type="text" id="s" name="s" value="" placeholder="Search"></div></form>'; setTimeout(function() { if(mobile.find('form').length == 1) return; mobile.html(search); }, 500); }); })(jQuery); </script> <?php }!!! Only difference is the value “?” – then a magifier symbol is seen


( get a bigger magnifier: )
#av-burger-menu-ul #searchsubmit { font-size: 25px; }on my end it works perfectly – and even with ajax :

yes this little additional information that it is a multisite would have been good to know. ;)
if you are not using jQuery migrate you should edit a lot of your little snippets on which a click or load event is used
on reasons of f.e. load is in conflict with ajax load – the load is deprecated now on jQuery 3.5.1use instead the .on(‘load’, …
so on your example above://—————–popup—————— function add_custom_script(){ ?> <script type=”text/javascript”> jQuery(window).on('load', function () { jQuery(‘.open-popup-link’).magnificPopup({ type:’inline’, midClick: true }); }); </script> <?php } add_action(‘wp_footer’, ‘add_custom_script’);that one line i marked with: // —- here
is the line you had to edit – you can add more lines like this to replace other tags
the script takes over all attributes of the original tag and transfers them to the new tag.
But this is not necessary on your page.to your child-theme functions.php:
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('.tab_inner_content.invers-color h6', '<p></p>'); // ---- here }(jQuery)); </script> <?php } add_action('wp_footer', 'replace_tags_with_tags');but for SEO purpose as mike said allready – maybe it is better to change it manually in the albs.
January 27, 2021 at 12:11 pm in reply to: Image Link Settings – Automaticly file:///x:/xxx/.. to domain.tld/xxx/ #1275749put in functions.php ? child or parent?
If parent – where did you insert that snippet?
Next: if i test this input: file:///x:/xxx/ in the advanced tab of image alb – link settings: manually
it does not change to domain.tld/xxx ?so what is the link you would like to have? and that works if you put it in the url window of your browser?
i see that you are not working with a child-theme!
where did you enter the snippet?
add_filter('avf_logo_link','av_change_logo_link'); function av_change_logo_link($link){ $link = get_site_url().'/zeroprojectconference2021/'; return $link; }Next: you have activated the merging of css and js files.
Did you refresh those files ?because of:
$link = home_url(‘/subpage’);
you can use :add_filter('avf_logo_link','av_change_logo_link'); function av_change_logo_link($link){ $link = get_site_url().'/subpage'; return $link; }or with your home_url function:
add_filter('avf_logo_link','av_change_logo_link'); function av_change_logo_link($link){ $link = get_home_url().'/subpage'; return $link; }what is the difference – on most cases : no difference – but look to your dashboard – settings – general
there you got both defined.
If you install your wordpress in a subfolder – then they differs.but subpage is still not defined – so what do you want to achieve
-
This reply was modified 5 years ago by
Guenni007.
Edit : I must have been somewhat misguided by the headline. One should read just yet also the content ;)
I had thought that you wanted to set the Title attribute at the submenu list item.
_________________
forget about that here:
or you put this to your child-theme functions.php:function set_menu_text_as_title(){ ?> <script> (function($){ $('.av-subnav-menu a').each(function(){ var menuName = $(this).find('>.avia-menu-text').text(); $(this).attr('title', menuName); }); })(jQuery); </script> <?php } add_action('wp_footer', 'set_menu_text_as_title');but for me the alt attribute is much more important – so i have on that line instead:
$(this).attr('alt', menuName);btw. it would be nice to hear from you if it is solved ;)
and:
can you have a look what happens if you set the images in the banners to scroll or fixed position. The parallax seems to be a bit buggy:
point with your mouse over the banner on top and try to scroll then.First of all: if you want to post code – please use the code tags here. It’s much easier to inspect and check if a code will work or not.
Sorry didn’t saw that you want to achieve this only by custom fields. My way offers a real meta box. A meta box has different advantages.
you then can use the meta box for your f.e. loop-index.php
you see the post-meta-info starts from 373f.e. if you like to show the saved “Outlet” after categories
look for:if( ! empty( $cats ) ) { echo '<span class="blog-categories minor-meta">' . __( 'in','avia_framework' ) . ' '; echo $cats; echo '</span><span class="text-sep text-sep-cat">/</span>'; }and insert after that:
$outlet = get_post_meta($post->ID, 'outlet', true); if(!empty($outlet)) { echo '<span class="outlets minor-meta">'. __( 'Outlet:','avia_framework' ) . ' '; echo $outlet; echo '</span><span class="text-sep text-sep-cat">/</span>'; }it will show then as:

and “Outlet” it is just a text input ?
Just the Admin Area Part so far:
you will then have a meta box input field where author or excerpt is placed.
If you like you can have the meta box field at the side

and

All comes to child-theme functions.php:
if you like to have the meta_box at the side – replace “normal” with “side”function add_custom_meta_box(){ add_meta_box("Outlet", "Outlet Meta Box", "outlet_meta_box_markup", "post", "normal", "default", null); } add_action("add_meta_boxes", "add_custom_meta_box"); //markup for metabox function outlet_meta_box_markup($object){ wp_nonce_field(basename(__FILE__), "meta-box-nonce"); ?> <div> <label for="outlet">Text</label> <input name="outlet" type="text" value="<?php echo get_post_meta($object->ID, "outlet", true); ?>"> </div> <?php } // storing the data function save_outlet_meta_box($post_id, $post, $update){ if (!isset($_POST["meta-box-nonce"]) || !wp_verify_nonce($_POST["meta-box-nonce"], basename(__FILE__))) return $post_id; if(!current_user_can("edit_post", $post_id)) return $post_id; if(defined("DOING_AUTOSAVE") && DOING_AUTOSAVE) return $post_id; $slug = "post"; if($slug != $post->post_type) return $post_id; $meta_box_text_value = ""; if(isset($_POST["outlet"])){ $meta_box_text_value = $_POST["outlet"]; } update_post_meta($post_id, "outlet", $meta_box_text_value); } add_action("save_post", "save_outlet_meta_box", 10, 3); function add_new_columns($columns) { $post_type = get_post_type(); if ( $post_type == 'post' ) { $new_columns = array( 'outlet' => esc_html__( 'Outlet', 'text_domain' ), ); return array_merge($columns, $new_columns); } } add_filter( 'manage_posts_columns', 'add_new_columns' ); function my_show_columns($name) { global $post; switch ($name) { case 'outlet': $outlet = get_post_meta($post->ID, 'outlet', true); echo $outlet; } } add_action('manage_posts_custom_column', 'my_show_columns'); // sort columns to your needs - do not list columns in the array if you do not want them (f.e. comments) function my_outlet_columns_definition( $columns ) { $customOrder = array('cb', 'title', 'outlet', 'date', 'author', 'categories', 'tags', 'comments'); foreach ($customOrder as $colname) $new[$colname] = $columns[$colname]; return $new; } add_filter( 'manage_posts_columns', 'my_outlet_columns_definition' ) ;next could be to have the option of sortable in list-view.
And to put this meta into quick edit field.For the frontend you could follow Ismael’s advice
-
This reply was modified 5 years ago by
Guenni007.
Thanks
-
AuthorPosts

