Forum Replies Created
-
AuthorPosts
-
May 28, 2022 at 3:11 pm in reply to: How to overwrite the new class-avia-masonry.php using the child theme? #1353275
you are right – now you have to work with the new class-avia-masonry.php.
if you look inside the older file – you see at the beginning:
if ( ! class_exists( 'avia_masonry_old' ) )the method stayes the same as before – your snippet is placed and the edited file could be uploaded to the enfold-child/shortcodes folder as before.
May 28, 2022 at 3:03 pm in reply to: Upgrading website from very old version of Enfold – concerns about functions.php #1353274PS : i only do not know for what the function h() is inserted
Guess this will be enough :
function ava_custom_script(){ ?> <script> (function($){ $('#top .product').each(function() { var onsale = $(this).find('.onsale'), thumb = $(this).find('.woocommerce-LoopProduct-link'); onsale.appendTo(thumb); }); })(jQuery); </script> <?php } add_action('wp_footer', 'ava_custom_script');May 28, 2022 at 2:59 pm in reply to: Upgrading website from very old version of Enfold – concerns about functions.php #1353273if i read the script well – and if i test it via developer Konsole on https://kriesi.at/themes/enfold-shop/
this will not remove the Sale badge but move it from bottom right to top right place.

Try this for the first snippet:
i found on functions.php the way LinkedIn and WhatsApp was set – so this might be the right way to do it.function avia_add_tiktok_icon($icons) { $icons['tiktok'] = array( 'font' =>'entypo-fontello', 'icon' => 'ue8fa' , 'display_name' => 'TikTok'); return $icons; } add_filter('avf_default_icons','avia_add_tiktok_icon', 10, 1);? no – i will look for that
edit: on helper-social-media.php there is on line: 167$display_name = ucfirst( $icon['social_icon'] );but this should only change the first letter to a big Letter. i don’t know if it changes the rest to lower case.
Nevertheless maybe a mod could tell us to use for example the filter: avf_social_media_icon_display_name and avf_social_media_icon_aria_label_value to change those existing values.
i guess – best would be with your page the standard widget area: ava_main_header
because you got a non sticky header.add_action( 'ava_main_header', 'header_widget_area' ); function header_widget_area() { dynamic_sidebar( 'header2' ); }but i think that this will only work if we can find a solution for that padding-top calculation for main.
or – using a different place in the DOMI’m trying a few other methods right now. …
for header meta you can use:
add_filter( 'avf_execute_avia_meta_header', '__return_true', 10, 1); add_filter('avf_header_setting_filter', 'avf_header_setting_filter_mod', 9999, 1); function avf_header_setting_filter_mod($header) { $header['header_topbar'] = 'header_topbar_active'; return $header; } add_action( 'avia_meta_header', 'enfold_customization_header2_widget_area' ); function enfold_customization_header2_widget_area() { dynamic_sidebar( 'header2' ); }Then you had to create the custom widget area on widgets named : header2
the setting that the header meta is scrolling you can find on enfold child – header – header behavior: Unstick topbarLink removed – see advice later on.
it is just a quick and dirty setting – because all responsive settings aren’t done.if you go and have a look into enfold folder content – there are a lot of do_action rules –
wp_body_open, ava_after_body_opening_tag, avia_meta_header, ava_main_header etc.
some of them are used – if f.e. wpml is installed.-
This reply was modified 3 years, 9 months ago by
Guenni007.
there are a lot of hooks to use – if you do not use the top bar – we can use that hook for it: avia_meta_header
there are snippets to activate the top-bar without using the elements ( top navigation, social icons , phone number). Advantage of that hook : it is part of header – you can decide that this area scrolls even if the header main is on sticky mode.Anyway if you use a widget-area there – you had to adjust the padding-top of main
One first question – you do not use or need the header-meta area
if you only try to place one or two additional social icons i do prefer the image method – without using font-icons.
Just download a png ( and this could be a colored one too) and register that new icon as above :function avia_add_custom_social_icon($icons) { $icons['TikTok'] = 'tiktok'; return $icons; } add_filter('avf_social_icons_options','avia_add_custom_social_icon', 10, 1);#top #wrap_all .av-social-link-tiktok a:before{ content: ""; width: 30px; height: 30px; display: inline-block; vertical-align: middle; background: url(/wp-content/uploads/tiktok.png) no-repeat center center; background-size: contain; } #top #wrap_all .av-social-link-tiktok:hover a { background-color: /*** … etc. what you like to see on hover-style ***/ }some of those css settings had to be adjusted where you use them – in the footer they got border-radius and are smaller.
you upload fontello font icon packs as zip files. Not as font-files but on enfold child Import/Export – Iconfont Manager

first the existing embedded icon-font on Enfold is named: entypo-fontello
Then – if you place f.e. an icon alb element to your layout and open to edit it you can see :
(click to enlarge:)

If you hover the icons and stay on that icon a while – you can see as tooltip the hexcode.the t from trumblr is on ue8fa and ue8fb
maybe the ue904 is an older icon of tiktokyou have uploaded to fontello your tiktok svg file and downloaded that as font-icon pack?
Did you name the font at fontello? The downloaded zip file you can unzip and open that demo.html – what do you see on top as name for the font in big bold letters?
On that demo in the fontello zip files you can mark on that html on the right side “show code”

and you realy entered the custom class in that input field without the dot !
the custom class is custom-table note that no dot is used
– as mike wrote above.
Many of the users make this mistake. However, the entry is made in the field without the “class point”.yes and the second option is to open the custom link – as fallback there is no link !
i think it is nicer to have here as Fallback the image-link.
So you can mix video and images in one gallerysee last hint on : https://kriesi.at/support/topic/change-responsive-behavior-collumns/#post-1352986
Go to each first column in your Layout where you got the image on the right side ( if you only got 1/2 columns ) the reverse order is what you looking for.
then the right column will be on top on responsive case.

the last option there : “individually select position …” is for column-rows with more than 2 columns – you can set then on advanced tab an order-number of the column.

you had to open then each column of the row to set the position.
@alwin: https://webers-testseite.de/flex-box-model/
@jochenmaier: go to your second line – open the alb editor and look on screen options at “Row screen options” – choose “reverse order” on every line that has the foto on the right side.
see: https://kriesi.at/support/topic/change-order-of-boxes-on-mobile/#post-1353005do you have a pdf program installed on your mobile device?
https://www.carlcare.com/ng/tips-detail/fix-adobe-not-opening-pdf-android/
maybe try to deactivate the addon from adobe – and let open the pdf in the browser itself.by the way – dear mods and better devs – wouldn’t it be better to have as fallback the image link – instead of no link?
no experience so far – sorry
I have changed my test site, which is already very bloated with code ( 3400 lines of child-theme functions.php and 7500 lines of quick css ) – and so far I have not found any problems.
ich habe mal im responsiven fall geändert zu:
grid-template-rows: 2fr 1fr 2fr 1fr 2fr 1fr;
damit man mal sieht was möglich istMay 25, 2022 at 7:49 am in reply to: How to add associated tags to each blog post using the Blog Post Widget #1352874isn’t there a dot missing?
$excerpt = $tags_output . "<br>" . $excerpt;Also z.B.:
Siehe hier: https://webers-testseite.de/grid-layout-modul/Es ist völlig beliebig welche Columns du da in das Layout legst, die Breiten und die Lage werden bestimmt durch das css.
Basis ist immer das Elternelement auf Layout : Grid zu setzen und die Items dann zu benennen.
Damit wir mit Enfold arbeiten können habe ich also die columns zu Items erkoren. Das direkte Elternelement ist aber der : entry-content-wrapper.Manche Enfold Einstellungen muss ich jedoch per css überschreiben, da es ja Regeln für die Columns gibt etc.
Entscheidendes Aha-Moment ist: ich kann das jetzt schieben wie ich will. Anfänglich habe ich 4Spalten 3Zeilen definiert
Die Weiten kann ich beim Grid Layout mit einer relativen Größe angeben. Die fr-Einheit. fr ist eine Brucheinheit und 1fr ist 1 Teil des verfügbaren Platzes.
Im Responsiven Fall ändere ich das: 3Spalten 6Zeilen
Besonderheit: wenn jetzt in feld2 feld2 auftaucht , dann sind da keine Lücken ( Die Zelle wird dann nur über zwei Breiten gestreckt)Die Frage – ob es geht ist nicht ohne, denn was passiert mit den Columns im responsiven Fall:
hier habe ich mal rumgespielt. und für das obere Teil auch mal den Responsiv Fall bearbeitet.
Bei dem Grid-Row Element wird es schon schwerer.
https://webers-testseite.de/lhoff/Im Grunde müsste man mit dem Grid Layout Modul arbeiten. – Wer denkt das Flex Box Model wäre komplex – der kann sich hier mal einlesen was das Grid Modul kann: https://kulturbanause.de/blog/css-grid-layout-module/
und vor Allem https://css-tricks.com/snippets/css/complete-guide-grid/
In dem Fall würde man in eine Colorsection sagen wir mal 10 1/4 Columns einfügen und dann entsprechend das Ganze bearbeiten. ;)
…by the way – if it is a common Side Bar – the name you had to enter is exactly what you see on your widgets:

so it is “Sidebar Pages” for pages widgets
but isn’t it the default behavior that search results page got a sidebar?
you can manage the position by that snippet:
(if you like a sidebar left … you know what to change?)function avia_change_layout_for_searchresults($layout, $post_id) { if( is_search() ) { $layout['current'] = $layout['sidebar_right']; $layout['current']['main'] = 'sidebar_right'; } return $layout; } add_filter('avia_layout_filter', 'avia_change_layout_for_searchresults', 10, 2);if you like to show a custom sidebar on that page you can do it via:
add_filter("avf_custom_sidebar", function($custom_sidebar) { if( is_search() ) { $custom_sidebar = "Your Custom Sidebar Name"; } return $custom_sidebar; }, 10, 1);f.e.: if you open a page on mobile device e.g. iphone there will be two classes on html tag:
avia_mobile avia-safari -
This reply was modified 3 years, 9 months ago by
-
AuthorPosts

