Forum Replies Created

Viewing 30 posts - 1 through 30 (of 70 total)
  • Author
  • > a.av-av_button-60d3b58ef6e39d033d89831f5df0c979
    I know that, but that can change. Copy paste the button and the “New” button is not working anymore. Whis a custom-class, the button is working everywhere with the same class name.

    > see:
    > on line 758 i added that class as custom-class-button (which is added on line 764 to the wrapper element)

    Thats how I do it right now. But that is only a workaround… I dont like to copy the elements to the child theme, as there is no update received with Enfold update.

    Why not add a filter to all shortcodes automatically: like apply_filters(‘avia_shortcodes’,$output, $shortcode, $args); or something there everyone can modify the output befor been delivered to wordpress? Is there such a filter which I can hook in to propagate the class, which I didnt find yet?

    £You can click on the images to open them in full view?

    But to answer your question

    “.customclass a” will never trigger, as Class trigger from GTM is ignoring the parent classes. GTM only see “a” as trigger. Thats my main post about.
    I therefor added exactly the printscreen what “GTM” sees on a click on an element, with the original debugging tool from Google.
    Thats the main point of the hole post.

    Its an older topic but no that is not working. Multiple reasons:

    See the buttons html. I can add a special class, but that is applied on the parent, not on the button itself, nor on the span which is also there:
    buttons html

    There are 2 clickable elements, the a and the span.

    GTM supports clicks on Links and All Clickable Elements. Both are useless, because

    The a is triggering (GTM on A Clicks only or all elements):
    There is nowhere at all the custom class which has been added and cant therefor be used in the GTM trigger.

    The Click on the “span” is triggering (GTM set on all Elements):
    worst here.

    As you can see, the custom class is in all options not reachable, as that is in the parent element, which is not clicked.

    There are 2 possible solutions:

    • Clicks on Links (GTM Setting): the a Element need to have the custom class propagated too. <a class="conversion" ....>
    • Click on all Elements: The A and all Subelements need to have the class propagated (bad solution)

    Right now, I need to create an own JS Trigger, which does what I wand and propagate the custom css class to the a that the triggers are working.

    That need to be fixed, as Javascript is bad in generall to add more and more unnessessary features.

    => I know that a trigger on avia-button is possible, but then you canot track individual button clicks only all. So there need to be a switch, which to track etc via custom class

    in reply to: Please dont close Theads that fast #1419141

    no, thats the normal Twitter image, But anyone can upload the X icon as new font and then change it via the add_filter.

    add_filter( 'avf_default_icons', function ($icons) {
    	$icons['twitter'] = array( 'font' => 'yourownfont', 'icon' => 'your-icon');
    	return $icons;

    then its done.

    in the orther thread, there was the “copy the full function to the child” as solution, which is not a good option.

    in reply to: Best way to add own functions for avia shortcodes #1413605
    function after_setup_theme_shortcode_textblock() {
    	if( ! class_exists( 'avia_wuk_textblock' ) ) {
    		class avia_wuk_textblock extends aviaShortcodeTemplate {

    As tipp, when you want to use a add_action ;)

    in reply to: Best way to add own functions for avia shortcodes #1413577

    answer not anymore readyble

    in reply to: Contact Form PHP 8.2 Issue #1411041

    I’m not getting the mails at all. The message on the site is shown.

    With the fix, I get the mails. Many sites have the same issue from me and I didnt change anything. Perhaps its not related to recaptcha… I donno. I only did that fix and its working again.

    Needed to update the file on all my sites + customers

    • This reply was modified 10 months ago by BlutVampir.
    in reply to: Contact Form not working with PHP 8.1 #1400326
    [07-Mar-2023 08:01:53 UTC] PHP Fatal error:  Uncaught TypeError: Cannot access offset of type string on string in /www/htdocs/w01d4781/
    Stack trace:
    #0 /www/htdocs/w01d4781/ avia_form->send(Object(avia_form))
    #1 /www/htdocs/w01d4781/ avia_form->display_form(true)
    #2 /www/htdocs/w01d4781/ avia_sc_contact->shortcode_handler(Array, Array, 'av_contact', Array)
    #3 /www/htdocs/w01d4781/ aviaShortcodeTemplate->shortcode_handler_prepare(Array, '\n[av_contact_fi...', 'av_contact')
    #4 [internal function]: do_shortcode_tag(Array)
    #5 /www/htdocs/w01d4781/ preg_replace_callback('/\\[(\\[?)(av_con...', 'do_shortcode_ta...', '\n[av_hr class='...')
    #6 /www/htdocs/w01d4781/ do_shortcode('\n[av_hr class='...')
    #7 /www/htdocs/w01d4781/ ShortcodeHelper::avia_remove_autop('\n[av_hr class='...', true)
    #8 /www/htdocs/w01d4781/ avia_sc_columns->shortcode_handler(Array, '\n[av_hr class='...', 'av_three_fifth', Array)
    #9 /www/htdocs/w01d4781/ aviaShortcodeTemplate->shortcode_handler_prepare(Array, '\n[av_hr class='...', 'av_three_fifth')
    #10 [internal function]: do_shortcode_tag(Array)
    #11 /www/htdocs/w01d4781/ preg_replace_callback('/\\[(\\[?)(av_one...', 'do_shortcode_ta...', '\n[av_one_fifth ...')
    #12 /www/htdocs/w01d4781/ do_shortcode('\n[av_one_fifth ...')
    #13 /www/htdocs/w01d4781/ ShortcodeHelper::avia_remove_autop('\n[av_one_fifth ...', true)
    #14 /www/htdocs/w01d4781/ avia_sc_cell->shortcode_handler(Array, '\n[av_one_fifth ...', 'av_cell_one_hal...', Array)
    #15 /www/htdocs/w01d4781/ aviaShortcodeTemplate->shortcode_handler_prepare(Array, '\n[av_one_fifth ...', 'av_cell_one_hal...')
    #16 [internal function]: do_shortcode_tag(Array)
    #17 /www/htdocs/w01d4781/ preg_replace_callback('/\\[(\\[?)(av_one...', 'do_shortcode_ta...', '<br />\n[av_cell...')
    #18 /www/htdocs/w01d4781/ do_shortcode('<br />\n[av_cell...')
    #19 /www/htdocs/w01d4781/ ShortcodeHelper::avia_remove_autop('<br />\n[av_cell...', true)
    #20 /www/htdocs/w01d4781/ avia_sc_grid_row->shortcode_handler(Array, '<br />\n[av_cell...', 'av_layout_row', Array)
    #21 /www/htdocs/w01d4781/ aviaShortcodeTemplate->shortcode_handler_prepare(Array, '<br />\n[av_cell...', 'av_layout_row')
    #22 [internal function]: do_shortcode_tag(Array)
    #23 /www/htdocs/w01d4781/ preg_replace_callback('/\\[(\\[?)(av_one...', 'do_shortcode_ta...', '[av_layout_row ...')
    #24 /www/htdocs/w01d4781/ do_shortcode('[av_layout_row ...')
    #25 /www/htdocs/w01d4781/ WP_Hook->apply_filters('[av_layout_row ...', Array)
    #26 /www/htdocs/w01d4781/ apply_filters('the_content', '[av_layout_row ...')
    #27 /www/htdocs/w01d4781/ include('/www/htdocs/w01...')
    #28 /www/htdocs/w01d4781/ require_once('/www/htdocs/w01...')
    #29 /www/htdocs/w01d4781/ require('/www/htdocs/w01...')
    #30 {main}
      thrown in /www/htdocs/w01d4781/ on line 1292
    • This reply was modified 1 year, 1 month ago by BlutVampir.
    in reply to: Custom Post Type Filter not wkring correctly #1376273

    I did find the issue, when the categorie is empty, everything is shown and the filter gets ignored. Sorry

    in reply to: Remove Enfold Language Flags WPML #1372952

    that code is running, thx alot !

    in reply to: Remove Enfold Language Flags WPML #1372619

    Settings Option is working, but that means, I need to connect to around 20 sites and set manually the option.

    I could update the php code and make a normal rollout, but unfortunatly, that code is also not working.
    As said, there is a big issue with filters in an class within the theme to remove from child theme.

    You can as long as you want try to fix the code, but its not running properly. Why test that code within 5 mins and fail then to repeatly try to give wrong answers? Can you please give me a code which is working to remove over your filter which is working? Otherwise the hooks are useless (Yes, they are, as you cant remove them as it seams).

    • This reply was modified 1 year, 5 months ago by BlutVampir.
    in reply to: Remove Enfold Language Flags WPML #1372540

    this code:

    add_action('init','avia_remove_main_menu_flags', 9999);
    function avia_remove_main_menu_flags() {
    	remove_filter( 'wp_nav_menu_items', [ avia_WPML(), 'handler_append_lang_flags' ], 9999, 2 );
    	remove_filter( 'avf_fallback_menu_items', [ avia_WPML(), 'handler_append_lang_flags' ], 9999, 2 );

    is not working.

    in reply to: Showcare Parallax incompatible with Child Theme #1368575
    This reply has been marked as private.
    in reply to: remove sidebar from custom post type single entry #1329640

    Better solution without changing the template:

    if(!function_exists('avia_layout_class')) {
    	function avia_layout_class($key, $echo = true) {
    		global $avia_config;
    		if(!isset($avia_config['layout']['current']['main'])) { avia_set_layout_array(); }
    		$return = apply_filters('avia_layout_class',$avia_config['layout']['current'][$key]);
    		if( $echo == true ) { echo $return; }
    		else { return $return; }
    add_filter('avia_layout_class', 'cpt_change_sidebar');
    function cpt_change_sidebar($class) {
    	if (get_post_type() == 'referenzen') { $class = str_replace("av-content-small","",$class); } // this removes the sidebar from CPT defined
    	return $class;

    Unfortunatly the function has no filter, so I add one and replace the msall function, then add the hook to change the layout.

    in reply to: Cookie consequent enable/disable select as small line #1329119

    Correct, have it on all WP Pages on one laptop, but not on the other pc / laptops.

    But funny, on ff, ie and chrome on that specific laptop… What?
    Will look into it.

    in reply to: Cookie consequent enable/disable select as small line #1329101
    This reply has been marked as private.
    in reply to: SVG Logo im Header #1289136

    I added following code:

    add_filter('upload_mimes', 'enfold_extra_mime_types');
    function enfold_extra_mime_types_extra_mime_types($mimes) {
    	$extraMIME = array(
    		'svg' => 'image/svg+xml'
    	return array_merge($mimes,$extraMIME);
    function enfold_logodimention($dimension) { return; }

    Upload of SVG is working and Logo is shown correctly.

    Yes, thanks, that solved it.

    in reply to: How force user browser to refresh the FLATICON cache? #1238176

    Same issue, Performance > File Compression is off.

    in reply to: Add some JS in form success message #1235633

    Ohhh I found

    ‘avia_contact_form_args’ which can be used. Workaround ;)

    in reply to: Add some JS in form success message #1235629

    since 2017 you ignore it, really good work.

    $success .= $this->form_params['success'];


    $success .= apply_filters('avia_submit_sucess',$this->form_params['success']);

    Would solve the complete nonesense. Please add it, provide us a way to add js oder HTML to the submit message.

    in reply to: Enfold Editor not working with Author Role #1201524

    I fiexed it. Author had page rights. but page are not workin then.

    Editor needs posts rights that the editor works, still on pages..

    in reply to: Request change in avia_google_maps_api.js #1121898

    ok, habs gefunden:

    add_action( 'wp_enqueue_scripts', 'reregister_enfoldmaps', 501);
    function reregister_enfoldmaps() {
    	wp_dequeue_script( 'avia_google_maps_api_script' );
    	wp_deregister_script( 'avia_google_maps_api_script' );
    	wp_register_script( 'avia_google_maps_api_script' , get_stylesheet_directory_uri() . '/framework/js/conditional_load/avia_google_maps_api.js', array( 'jquery' ), avia_get_theme_version(), true );
    	wp_enqueue_script( 'avia_google_maps_api_script' );

    working fine.

    in reply to: Request change in avia_google_maps_api.js #1121894

    How can I deregister and exchange the script via Child Theme?

    the same folderstructure doesn’t workk and I cant find the register_script stuff to remove it…

    in reply to: Request change in avia_google_maps_api.js #1121892

    Not n yet unfortunetly. Any plan?

    in reply to: Blog Style #1090877

    Hi Thanks. Better late then never.

    That easy and I didnt found it.
    I know well how to extend it without touching the code now.

    in reply to: Which function is responsible to display the_content(). #1076476


    My code is working PHP Code. Your code is beginner error at best.

    You cant do ‘ within ‘ stuff. Otherwise you would need to change ‘ to \’. But this is beginner level.
    So when I fix the errors in your php stuff, it returns also nothing.
    As it is the same in the end.

    same issue on other page, where I only have a small

    echo do_shortcode("[av_button label='test' link='manually,' link_target='_blank' size='medium' position='left' label_display='' icon_select='no' icon='ue800' font='entypo-fontello' color='theme-color-highlight' custom_bg='#444444' custom_font='#ffffff' av_uid='' admin_preview_bg='']")

    returns as blank.

    I did downgrade to version 4.5.3 working again fine. Upgrade to newest version 4.5.4, breaks code.

    All debuggin infos added. Please find a fix, I did search for 3h and didnt find any. Can you please check what you did change in the latest update?

    Not anymore woirking since last enfold update.

    If you use enfold functions within types content, the enfold functions will all retourn blank instead of content / formatting /stuff.
    as enfold doesnt apply the functions of visual builder correctly on the_content() somhow.

    It did work with the older version

Viewing 30 posts - 1 through 30 (of 70 total)