Forum Replies Created

Viewing 30 posts - 13,531 through 13,560 (of 67,582 total)
  • Author
    Posts
  • in reply to: Magazine filter and permalinks #1320845

    Hey SurigliaStudio,

    Thank you for the inquiry.

    This is possible, but you have to modify the enfold/config-templatebuilder/avia-shortcodes/magazine/magazine.js file. Look for this code around line 26.

    current.addClass('active_sort');
    

    And below, add this code.

    window.location.hash = decodeURI(current[0].outerText).toLowerCase();
    

    Please toggle or temporarily disable the Enfold > Performance > File Compression settings after doing the modification.

    Best regards,
    Ismael

    in reply to: Search box in overlay Search box #1320840

    Hi,

    We edited the functions.php file and adjusted the script a bit for the new mobile menu.

    
    // add search bar to mobile menu
    function ava_custom_script_mod_search_mobile()
    {
    ?>
    	<script>
    		(function($) {
    			$(document).ready(function() {		
    				var page   = window.location.href;
    				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>';
    	
    				$('.av-burger-menu-main a').on('click', function() {
    					if($(".av-mobile-search").find('form').length == 1) return;
    					setTimeout(() => {
    						$("<div class='av-mobile-search'>" + search + "</div>").prependTo('#av-burger-menu-ul');
    					}, 300);	
    				});
    			});
    		})(jQuery);
    	</script>
    <?php
    }
    add_action('wp_footer', 'ava_custom_script_mod_search_mobile', 10000);
    
    

    The search bar is now added above the mobile menu items but it will require a bit of css modification. You can start with the following.

    .av-mobile-search div {
        position: relative;
    }

    Best regards,
    Ismael

    in reply to: exclude images from srcset responsive react. #1320835

    Hi,

    We could modify the class-responsive-images.php > prepare_single_image function a bit and add a condition which prevents the theme from adding the scrset attribute when an array contains the current attachment or image ID. We could also add a filter so that we could modify the array in the future.

    Look for this code inside the function..

    if( is_numeric( $attachment_id ) || 0 != $attachment_id )
    				{
    					$new_img = $this->add_attachment_id_to_img( $new_img, $attachment_id );
    				}
    

    .., and replace it with:

    	if( (is_numeric( $attachment_id ) || 0 != $attachment_id) && !in_array($attachment_id, apply_filters("avf_srcset_exclude_images", array())) )
    				{
    					$new_img = $this->add_attachment_id_to_img( $new_img, $attachment_id );
    				}
    

    The filter can be used as follows.

    add_filter("avf_srcset_exclude_images", function($exclude) {
    	$exclude = array(123, 111, 141);
    	return $exclude;
    });
    

    Best regards,
    Ismael

    in reply to: [av_privacy_google_tracking] button not working #1320832

    Hi,

    Yes, we need an admin account in order to check the issue. Please post the details in the private field, and make sure that the Appearance > Editor panel is accessible.

    Best regards,
    Ismael

    Hi,

    Thank you for the info.

    We adjusted the script a bit based on this thread (https://stackoverflow.com/questions/1397329/how-to-remove-the-hash-from-window-location-url-with-javascript-without-page-r/5298684#5298684).

    
    /* Remove the down arrow #av_section_3 from https://example.com/#av_section_3 on first load */
    function ava_custom_script_remove_hash() { 
    ?>
    <script>
    function removeHash () { 
        history.pushState("", document.title, window.location.pathname + window.location.search);
    	setTimeout(function() {
    		window.scrollTo(0, 0);
    		console.log("scrolled");
    	}, 500);
    }
    	
    window.addEventListener("DOMContentLoaded", function() {
    	console.log("remove hash");
    	removeHash();
    });
    </script>
    <?php
    }
    add_action('wp_footer', 'ava_custom_script_remove_hash', 999);
    

    It should be working properly now. Make sure to purge the cache or test the site on incognito mode.

    Best regards,
    Ismael

    in reply to: Tag on portfolio pages #1320713

    Hi,

    No problem. Please let us know if you need anything else. We will close this thread for now.

    Have a nice day.

    Best regards,
    Ismael

    in reply to: Can't enable block editor #1320709

    Hey umnique,

    Thank you for the inquiry.

    Did you update the theme to version 4.8.6.1? Please post the site details in the private field so that we could check the issue properly. Make sure that the Appearance > Editor is accessible.

    Best regards,
    Ismael

    in reply to: How can I hide the active thumbnail image in gallery? #1320706

    Hey justingd83,

    Thank you for the inquiry.

    The site above actually contains two gallery, one after another. Only one image is selected in the first gallery and 3 images in the gallery below.

    Best regards,
    Ismael

    in reply to: Multiple Captions on a 1 minute video slide #1320704

    Hey bowlandwalks,

    Thank you for the inquiry.

    You could manually embed the captions directly before rendering the video. But if you are going to rely on the builtin caption, this might not possible. Please check the documentation for more info.

    // https://support.google.com/youtube/answer/2734796?hl=en

    Best regards,
    Ismael

    Hey Jasmer,

    Thank you for the inquiry.

    We could use the following script in the functions.php file to remove any hash on initial load.

    
    function ava_custom_script_remove_hash() { 
    ?>
    <script>
    (function($) {
    	$(document).ready(function() {
    		var hash = location.hash.replace('#','');
    		if(hash != '') {	
    			location.hash = '';
    		}
    	});
    })(jQuery);
    <?php
    }
    add_action('wp_footer', 'ava_custom_script_remove_hash');
    

    Please toggle or temporarily disable the Enfold > Performance > File Compression settings, and purge the cache after adding the code.

    Best regards,
    Ismael

    in reply to: No audio in my full screen video all of a sudden #1320645

    Hi,

    Thank you for the inquiry.

    The background of any color section is muted by default because you cannot autoplay a media file if audio is enabled. Only muted autoplay is allowed as described in this article.

    // https://developer.chrome.com/blog/autoplay/

    Chrome’s autoplay policies are simple:

    Muted autoplay is always allowed.
    Autoplay with sound is allowed if:
    The user has interacted with the domain (click, tap, etc.).
    On desktop, the user’s Media Engagement Index threshold has been crossed, meaning the user has previously played video with sound.
    The user has added the site to their home screen on mobile or installed the PWA on desktop.
    Top frames can delegate autoplay permission to their iframes to allow autoplay with sound.

    Best regards,
    Ismael

    in reply to: add class to get_the_term_list #1320641

    Hi,

    You have to check for the term name, not the taxonomy name. What is the name of the custom taxonomy and what are the terms or categories inside that particular taxonomy?

    Best regards,
    Ismael

    in reply to: masonry gallery sort option #1320640

    Hi,

    Thank you for the info.

    It is not working because you did not select any image in the Masonry Gallery element. Please try to edit the masonry element, edit the gallery and select the images manually.

    Best regards,
    Ismael

    in reply to: Load more button in media overview #1320638

    Hi,

    Great! Glad it is now back to infinite scrolling. Please us know if you need anything else. We will close this thread for now.

    Have a nice day.

    Best regards,
    Ismael

    in reply to: Sticky post in blog grid #1320637

    Hey JaimBateman,

    Thank you for the inquiry.

    The same code above should work for sticky posts but for the grid layout, you have to replace avia_blog_post_query with the avia_post_slide_query filter. Let us know if that helps.

    Best regards,
    Ismael

    Hey QuantumPhysics,

    Thank you for the inquiry.

    We are able to reproduce the menu issue on a Simulator but not the others as shown in the screenshot below.

    Screenshot: https://imgur.com/rwxmUPM

    Adding the following css code should fix the menu issue.

    .html_av-overlay-side #top #wrap_all .av-burger-overlay-scroll #av-burger-menu-ul a .avia-menu-text {
        color: #333333;
        display: block !important;
    }
    

    Best regards,
    Ismael

    in reply to: exclude images from srcset responsive react. #1320615

    Hey Guenter,

    Thank you for the inquiry.

    Looks like you are using the Fullwidth Slider, which does not set the slide image as background. Are you referring to the Fullscreen Slider element? The theme is using the post_thumbnail_html filter to modify the html of the attachment or image and apply the wp-image-id class name. You can find the function in the enfold/framework/php/class-responsive-images.php -> add_attachment_id_to_img.

    Best regards,
    Ismael

    in reply to: theme reacts weird and brake the site #1320614

    Hi,

    Yes, the minification option from the plugin should be the same as in the theme, so you can just enable it instead. Or install the Autoptimize plugin, which works well with the theme’s Performance > Disabling of template builder elements option. You should also keep the default file compressions settings disabled if you chose to install the Autoptimize plugin.

    Best regards,
    Ismael

    in reply to: Recaptcha issue again again #1320613

    Hi,

    Thank you for following up.

    The contact forms in the test page are still working properly like last time. We added the link of the test page in the private field.

    We are not exactly sure what “asset cleanup” from the plugin entails. You may need to contact the plugin author for clarification, or just create a site backup and a restore point before enabling it just incase.

    Best regards,
    Ismael

    in reply to: Copyright option for images including HTML #1320612

    Hi,

    Yes, you may have to update the image.php file if there are changes in it. Unfortunately, we will not be removing the esc_html function in the next patch because it was added there to clean invalid output and escaped special characters. But we could add a filter so that it can still be adjusted if necessary. We will forward the thread to our channel for further consideration.

    Best regards,
    Ismael

    in reply to: Sticky posts magazine #1320611

    Hi,

    Thank you for the info.

    We may have to access the site and test the modification directly. Please provide the WP and FTP login details in the private field.

    Best regards,
    Ismael

    in reply to: add class to get_the_term_list #1320610

    Hi,

    Thank you for the update.

    Try to replace this line..

    foreach($cats[0] as $cat) {
    								if(in_array($cat->name, array("kitty", "pussy", "catty"))) {
    									$cat_class = "pets";
    								}
    								$cat_walk .= "<a class='". $cat_class . "' href='" . get_term_link($cat->term_id) . "'>" . $cat->name . "</a>";
    							} 
    
    

    with..

    foreach($cats as $terms) {
    	foreach($terms as $term) {
    		if(in_array($term->name, array("kitty", "pussy", "catty"))) {
    			$cat_class = "pets";
    		}
    		$cat_walk .= "<a class='". $cat_class . "' href='" . get_term_link($term->term_id) . "'>" . $term->name . "</a>";
        }
    } 
    
    

    The changes above should work for all custom post types and taxonomies.

    Best regards,
    Ismael

    in reply to: Changing the 'Elegant' font size in the Accordion Element #1320608

    Hi,

    No problem! Glad we could be of help. Please do not hesitate to open another thread if you need anything else.

    Have a nice day.

    Best regards,
    Ismael

    in reply to: masonry gallery sort option #1320607

    Hi,

    Thank you for following up.

    This same code works properly on our end. Are you sure that you added it correctly in the functions.php file? Please post the login details in the private field so that we could test it.

    Best regards,
    Ismael

    in reply to: Tag on portfolio pages #1320605

    Hey koomo,

    Thank you for the inquiry.

    You will have to modify the following line and add the link tag or markup manually.

    $output .= ‘<span class=”portfolio_tag”>‘.$tag->name.’ </span>’;
    

    Something like

    $output .= '<a class="portfolio_tag" href="'.$taglink.'">'.$tag->name.'</a>';
    

    Best regards,
    Ismael

    in reply to: Edit default Ajax search for Taxonomy Terms #1320604

    Hi,

    Thank you for the inquiry.

    The title is not displaying because by default the AJAX search is using the get_the_title function, which can only retrieve post title as the name suggests. You will have to modify the functions-enfold.php file and adjust this code around line 433 and 443 in order to get the title and link of the archive pages.

    433:

    $link = apply_filters( 'av_custom_url', get_permalink( $post->ID ), $post );
    

    443:

    $output .= '<span class="av_ajax_search_content">';
    				$output .=		'<span class="av_ajax_search_title">';
    				$output .=			get_the_title($post->ID);
    				$output .=		'</span>';
    

    You may need to use these functions.

    // https://developer.wordpress.org/reference/functions/get_post_type_archive_link/
    // https://developer.wordpress.org/reference/functions/get_the_archive_title/

    Best regards,
    Ismael

    in reply to: Ajax search results URL no longer translated #1320603

    Hey El,

    Thank you for the inquiry.

    The theme or the AJAX search does not support the qtranlsate-xt plugin ever since. If you look at the following documentation, only Polylang, Relevanssi and SearchWP plugins have default integrations for the search feature.

    // https://kriesi.at/documentation/enfold/search/

    By default, the AJAX search relies on the get_posts function. You may need to ask the plugin author and ask them how the plugin retrieves the posts translation.

    Best regards,
    Ismael

    in reply to: ENFOLD Menu disapeared in WordPress backend #1320602

    Hey salai_com,

    Thank you for the inquiry.

    Are you trying to enable the top menu? Please note that the top or secondary menu will not display when the header is set to transparent. You have to adjust the page’s Layout > Header Sichtbarkeit und Transparenz settings, and enable the secondary menu in the Enfold > Header > Extra Elements > Header Sekundär-Menü settings.

    Best regards,
    Ismael

    in reply to: Layer Slider multisite problem #1320477

    Hi,

    No problem. Glad to know that it is working. We could remove the layer slider settings (ntegrated (Bundled) LayerSlider Plugin) from the theme options, but we have to modify the enfold/config-layerslider/config.php file directly, and remove this code around line 74.

    add_filter( 'avf_option_page_data_init', array( $this, 'handler_option_page_data_init' ), 10, 1 );
    

    Thank you for your patience.

    Best regards,
    Ismael

    in reply to: Logo and menu in left Side bar / Titles not showing on pages #1320476

    Hi,

    Thank you for the update.

    We could also use this filter in the functions.php file to re-enable the Enfold > Header > Header Layout > Header Title and Breadcrumbs even when the header is set to the left or right.

    
    function avf_header_setting_filter_mod($header) {
       $header['header_title_bar'] = 'title_bar';
       return $header;
    }
    add_filter('avf_header_setting_filter', 'avf_header_setting_filter_mod', 9999, 1);
    

    Let us know if that helps.

    Best regards,
    Ismael

Viewing 30 posts - 13,531 through 13,560 (of 67,582 total)