Viewing 30 results - 1,171 through 1,200 (of 7,495 total)
  • Author
    Search Results
  • #1270903

    Hi,

    After installing jQuery-migrate the hamburger menu is not showing in the website I’m building. Even changing the parameters in the “main menu” option of the theme settings doesn’t work. For example, when set to icon (hamburger) menu on desktop, still text stays visible; also the search icon will not disappear, when set to “turned-off”.
    I have another website where it works fine with WP 5.6 and Enfold 4.7.6.4 and without jQuery-migrate.

    Regards,
    Adri

    #1270697

    Hi Ismael,

    Thank you for your reply. I actually copied it from this thread. This is how my child theme functions.php looks like altogether, below. But it still doesn’t work.

    <?php

    /*
    * Add your own functions here. You can also copy some of the theme functions into this file.
    * WordPress will use those functions instead of the original functions then.
    */

    //set builder mode to debug
    add_action(‘avia_builder_mode’, “builder_set_debug”);
    function builder_set_debug()
    {
    return “debug”;
    }

    /*
    * AJAX Search won’t search the pages but posts only, in the SEARCH DROPDOWN
    */

    function avf_modify_ajax_search_query($search_parameters) {
    parse_str($search_parameters, $params);
    $params[‘post_type’] = ‘post’;
    $search_parameters = http_build_query($params);
    return $search_parameters;
    }

    add_filter(‘avf_ajax_search_query’, ‘avf_modify_ajax_search_query’, 10, 1);

    /*
    * AJAX Search won’t search the pages but posts only, in the SEARCH RESULTS PAGE
    */

    function exclude_pages_from_search($query) {
    if ( $query->is_main_query() && is_search() ) {
    $query->set( ‘post_type’, ‘post’ );
    }
    return $query;
    }
    add_filter( ‘pre_get_posts’,’exclude_pages_from_search’ );

    /*
    * Changing placeholder message in Enfold standard AVIA search field not to have my manual placeholders in mobile view
    */

    // adjust search placeholder on mobile view
    function ava_script_search_placehodler() {
    if ( wp_script_is( ‘avia-default’, ‘registered’ ) ) {
    wp_add_inline_script( ‘avia-default’, ‘(function($) {
    (function($) {
    if(window.innerWidth >= 989) return;
    $(".av_searchform_wrapper").find("#s").attr("placeholder", "Search");
    })(jQuery);
    ‘);
    }
    }
    add_action( ‘wp_enqueue_scripts’, ‘ava_script_search_placehodler’, 9999);

    gingerstu
    Participant

    Hi,

    We’re using the Advanced Classifieds and Directories Pro to facilitate a small business listings tool on our website. I have a problem that when i click through to an individual listing, the sidebar shows the blog content sidebar – ideally I’d want it to show the categories, locations and search facility associated to the Directory tool.

    I believe this is because the listing page is rendered using the single.php from the Enfold Theme. is there a way of specifying which widgets appear when? Or at the very least get the Directory widgets to appear in the sidebar when the user is browsing pages associated to the directory?

    Thanks,
    Stuart

    #1270391

    Hi,
    Thanks for the feedback, I see for mobile the social icons and the search icon are not displaying, are you still using your custom functions above? Please try removing this and update the Enfold theme, as you are using version 4.6.2 which is quite old now and contained many errors that have now been corrected in the current version 4.7.6.4

    Best regards,
    Mike

    #1270227

    I am sorry, I just realized I didn’t answer your question properly: The search field and the current placeholder text were inserted using your AVIA Layout Builder – it is a standard Enfold search field.

    Thanks!

    Hi,

    Glad it is working. To adjust the search query, we could use the pre_get_posts filter in the functions.php file. Please check the provided snippets in the following threads.

    // https://kriesi.at/support/topic/changes-in-functions-php-functions-enfold-php-in-child-theme-are-ignored/#post-1077624
    // https://kriesi.at/support/topic/masonry-galerie-sort-by-css/#post-1128916
    // https://kriesi.at/support/topic/product-grid-and-product-slider-ignore-taxonomy-selection/#post-1027806

    Best regards,
    Ismael

    #1270074

    Hi Ismael,

    Thanks for your swift reply!

    I have created a (modified) copy of search.php and have put it in a child theme directory, and restored the original one at the enfold parent theme directory, thanks a lot for that!

    I am attaching the link to the staging page related to the search field I was asking about, in a private section. It is a standard search field, somewhat CSS-adapted, but works just fine. The placeholder text is certainly too long for mobile phones, and doesn’t look good. I’d like to simply have “Search” for the mobile phones in a placeholder, instead of that longer content.

    Thanks a lot again!

    Kind regards

    #1269839

    Hey Technoh,
    Sorry for the late reply, thanks for sharing your code, but the theme already places the search icon and form next to the burger menu when it is enabled:
    2020-12-26_164258.jpg
    at Enfold Theme Options > Main Menu > Append search icon to main menu
    So perhaps because you have this option disabled, when you try adding it though your theme edits the same classes are used and it doesn’t show due to the css from the theme option.
    Please try using the theme option instead.

    Best regards,
    Mike

    Chris Trott
    Guest

    Hi,

    I am using the Enfold theme for a company shopping cart. It looks great so far. One question I have is, is there some way to substitute the page search for Smart WooCommerce Search in the header? That way people can just click on the little magnifying glass and search the shopping cart instead of the site. Here is a screen shot https://ibb.co/qnW9LSd

    Thanks

    Hi alice56220,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    @media only screen and (max-width: 1250px) {
      nav.main_menu, #menu-item-search {
        display: block !important;
      }
      .menu-item {
        display: none;
      }
      .av-burger-menu-main.menu-item-avia-special {
        display: block;
      }
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1269607
    samanthashea
    Participant

    I need to add a Google Search Console Code there but it doesn’t appear to exist. I am using Enfold Child and can only see functions and style

    #1269510

    Merhabalar,

    Bu degisikliklerin sonraki guncellemelerde kayip olmamasi icin child theme kullanmanizi tavsiye ederim. Eger child theme kullanmiyorsaniz buradan bizim onceden hazirladigimizi indirip yukleyebilirsiniz – https://kriesi.at/documentation/enfold/child-theme/

    – /enfold/includes/loop-search.php dosyasini kopyalayip /enfold-child/ klasoru icerisine “includes” klasoru olusturup onnun icine yapistirin.
    – Assagidaki satiri bulun

    echo "<span class='search-result-counter {$counterclass}'>{$post_loop_count}</span>";

    ve o satiri assagidaki ile degistirin

    $searchthumb = get_the_post_thumbnail( $the_id, 'large' );
    echo "<span class='search-result-counter {$counterclass}'>{$searchthumb}</span>";

    – Sonrasinda assagidaki kodu Enfold theme options > General Styling > Quick CSS alanina ekleyin

    .search-result-counter {
        padding: 0;
    }
    
    .search-result-counter img {
    	width: 100%;
    	height: 100%;
    	border-radius: 100px;
    }

    Best regards,
    Yigit

    #1269471

    Topic: Menu Search Only Posts

    in forum Enfold
    dannyl82
    Participant

    Hi,

    On the Enfold menu search is it possible to filter it so it only searches certain taxonomys e.g. it only searches posts?

    Thanks,
    Danny

    #1269414
    estalavera-bwi
    Participant

    I am using Product Tables plugin with Elementor.
    The issue that I am having is that when I am logged in, the shortcode renders correctly.. But when I am not logged in (site visitor) the table is hidden (visibility: hidden) and the filter / search bar does not display at all.

    I went from Enfold 4.3 to 4.7.6.4 and still having issue.

    When I install on default theme, the shortcode renders correctly and everything works fine. Please visit link.

    #1269382
    Technoh
    Participant

    Hello there. I am trying to add the search icon (with its associated search form) right next to the burger menu icon. I have found the function avia_append_burger_menu and have redefined it in my child theme. I can confirm the search icon’s html is added properly by sending it to debug.log yet it never shows up next to the burger menu icon. Moreover, it seems it’s added to the inside of the burger menu instead of right next to the burger menu icon. I have no idea what is going on.

    Here is the redefined avia_append_burger_menu function:

    /* Append the burger menu */
    if(!function_exists('avia_append_burger_menu'))
    {
    	//first append search item to main menu
    	add_filter( 'wp_nav_menu_items', 'avia_append_burger_menu', 9998, 2 );
    	add_filter( 'avf_fallback_menu_items', 'avia_append_burger_menu', 9998, 2 );
    
    	function avia_append_burger_menu ( $items , $args )
    	{	
    		global $avia_config;
    		
    		$location = ( is_object( $args ) && isset( $args->theme_location ) ) ? $args->theme_location : '';
    		$original_location = isset( $avia_config['current_menu_location_output'] ) ? $avia_config['current_menu_location_output'] : '';	
    		
    		/**
    		 * Allow compatibility with plugins that change menu or third party plugins to manpulate the location
    		 * 
    		 * @used_by Enfold config-menu-exchange\config.php			10
    		 * @since 4.1.3
    		 */
    		$location = apply_filters( 'avf_append_burger_menu_location', $location, $original_location, $items , $args );
    		
    	    if( ( is_object( $args ) && ( $location == 'avia' ) ) || ( is_string( $args ) && ( $args == "fallback_menu" ) ) ) {
    	        $class = avia_get_option('burger_size');
    	        
    	        $items .= '<li class="av-burger-menu-main menu-item-avia-special '.$class.'">
    	        			<a href="#">
    							<span class="av-hamburger av-hamburger--spin av-js-hamburger">
    					        <span class="av-hamburger-box">
    						          <span class="av-hamburger-inner"></span>
    						          <strong>'.__('Menu','avia_framework').'</strong>
    					        </span>
    							</span>
    						</a>
    	        		   </li>';
    
    			// Utilisation de la fonction maison définie ci-haut.
    			$items = avia_append_search_nav( $items, $args );
    	    }
    
    	    return $items;
    	}
    }

    Since it uses our redefined avia_append_search_nav function, here it is as well:

    if(!function_exists('avia_append_search_nav'))
    {
    	// Remove from its usual position
    	remove_filter( 'wp_nav_menu_items', 'avia_append_search_nav', 10, 2 );
    	remove_filter( 'avf_fallback_menu_items', 'avia_append_search_nav', 10, 2 );
    
    	function avia_append_search_nav ( $items, $args = null ) {
    		global $avia_config;
    		ob_start();
    		get_search_form();
    		$form =  htmlspecialchars(ob_get_clean()) ;
    
    		$items .= '<li id="menu-item-search" class="menu-item menu-item-search-dropdown">
    						<a href="?s=" rel="nofollow"><span class="avia_hidden_link_text">'.__('Search','avia_framework').'</span></a>
    				   </li>';
    
    	    return $items;
    	}
    }

    Any help is appreciated. Thanks!

    • This topic was modified 5 years, 3 months ago by Technoh. Reason: Again, better code formatting
    #1269381

    Hi Ismael,

    I had some other problems with WPML that definitely didn’t have anything to do with Enfold, so contacted the WPML support today. Which also fixed the problem here in this thread.

    The culprit was Gutenberg. And I think this is important info for a lot of websites done with Enfold:
    When you create the first wordpress page for a website, Gutenberg is active. When switching to the Avia builder, Gutenberg disappears, BUT(!) there’s still some invisible code from Gutenberg on the page.
    So, to keep design elements and structure the same for the next page, I duplicated that first page. And again for the next page,…
    The result is: That Gutenberg code is now sitting inside every page. And WMPL really doesn’t like that at all!

    Solution was:
    – install the “Classic Editor” WordPress plugin
    – get the problematic page’s post ID (hover over it & browser will display the page-id)
    – in the SQL database, go to the wp_posts table and search for the post_id
    – on the post_content col, remove all tags and save
    – on WP, do a small modification on the original post and save
    – update the translation

    That fixed a lot of the issues, including the missing slider header translation. Maybe worthwhie pointing this out in your manual / the Enfold “WPML Wokflow” page.

    #1269182
    drkpi
    Participant

    The screen below shows, how we tried to change a pictogram used for the search option
    Search Logo - Pictogram, can we replace it

    I have a pictogram from the client they want us to use, but how do I replace it >enfold child > Hauptmenu > Suchmaske
    Can you advise please.

    Thanks.
    Urs

    Hello,
    Any updates on the imaging “tearing” issue for the gallery media element?

    I found an unrelated website, Zillow.com, which shows image tearing in their search box.
    Zillow search box shows tearing in all 4 of its corners

    It is very interesting to me that tearing is appearing in a search box.

    I don’t know if there is a larger issue of tearing that appears outside of the Enfold theme specifically. I wonder if tearing is appearing on other websites that do Not use Enfold. For these unrelated websites, is tearing appearing in elements beyond the search box element?

    It would be good to know what theme or template builder Zillow, if it is WordPress-based, or not. That may lead solutions to the tearing problem for Enfold and to non-Enfold/non-WordPress-based websites. Zillow.com is a well-known website.

    It may be helpful to contact Zillow about this to help all people who have websites who have this “tearing” issue. I am still very interesting in identifying the underlying cause or causes of the problem for me and for anyone else who has this problem.

    #1267952
    Bruno
    Participant

    Hi. Sorry if I take your time: http://www.trikego.com I would like to try to use the fixed menu on mobile. I searched and found https://kriesi.at/documentation/enfold/header/#sticky-header-on-mobile I entered the css

    /* Sticky header on mobile */
    @media only screen and (max-width: 767px) {
    .responsive #top #main {
    /* Margin top value should be equal to header height*/
    margin-top: 180px;
    }
    .responsive #top #wrap_all #header {
    position: fixed;
    }
    }

    but the header flows with the rest: where am I wrong? I would like to try to block it, with sticky effect. Thank you very much. Loved the site, thanks Enfold. Best regards. Bruno

    Hi,

    Thanks for the screenshot. Please try the following in Quick CSS under Enfold->General Styling:

    div.ajax_search_response {
        background: #fff;
        z-index: 3;
    }

    Best regards,
    Rikard

    elenapoliti
    Participant

    Hi, I have a couple of pages where I display custom post types. The post types in the two pages are the same, but they are differentiated by a custom function that works on a acf field (in this case a number corresponding to “year”), showed herebelow:

    add_filter('avia_post_slide_query', 'avia_post_slide_query_mod',10, 2);
    function avia_post_slide_query_mod($query, $params) {
    	$posts = get_posts($query);
    	$today_year = date('yy');
    	$two_years_ago = $today_year - 2;
    	$current = array();
    
    		foreach( $posts as $post ) {
    			$meta = get_post_meta($post->ID);
    			
    			
    			if (is_page(112)){
    				$acf_year = $meta['anno'][0];
    				if($acf_year >= $two_years_ago & $acf_year <= $today_year) {
    				$current[] = $post->ID;
    				}	
    
    			}
    			else if (is_page(204))	{
    				$acf_year = $meta['anno'][0];
    				if($acf_year < $two_years_ago) {
    				$current[] = $post->ID;
    				}	
    			}
    			else if (is_archive()) {
    				return $query;
    			}
    		}
    
    	$query['post__in'] = $current;
    
    	return $query;
    }
    

    What I need is to add the possibility (in front-end) to add a orderby option, similar to the one that is suggested in the back-end blog post (see Enfold documentation)

    My need is to enable the possibility of sorting posts by the following parameters: year (= acf field); location (=acf field); post title

    I tried to use an external plugin (Search&Filter), but it doesn’t work well as it searches among all posts created (hence also those that are not listed in the page).

    Can you suggest me how to solve the problem?

    #1267243

    Topic: Sidebar confusion.

    in forum Enfold
    Actionrev
    Participant

    I did some searching to learn about enfolds sidebars and I can’t find a solution for the website I have taken over to update.

    The site has multiple sidebars on different pages but when I go into Appearance/Widgets I only see Display Everywhere, Sidebar Blog, Sidebar Pages, Footer-column1 though Footer- Column 5. All of these are empty except Sidebar Pages, which has Text Office.

    The About page has the “Sidebar Pages” selected but the page has extra links at the top of the sidebar that are not in the widget. FA@’s has the “Sidebar Pages” selected and only shows the Office information in the sidebar. Pricing has the “Default Sidebars” selected and Office is displayed but above it shows links to Features, Pricing, Request a Demo, and Sign up Today.

    How is the information above the selected sidebar different from other pages?

    • This topic was modified 5 years, 3 months ago by Actionrev.
    #1267241
    Johannes Kistemaker
    Guest

    Hi Kriesi,

    We have deployed the enfold theme now for quite some time at our site however we noticed that we did not receive any automatic updates since 2018 and we can’t update manually via the theme page. (We’re stuck on version 4.3.2)
    I tried to research how to update, but I wasn’t able to download any of the required files. The organization let someone develop the website, but that person claims to have lost all credentials (including to the registered email).

    All I have is the username + API. Is there anything you can do for us? (See private content)
    I could not submit this question via the form, since we do not have the purchase code.

    Does this Enfold license expire after some time? Or is it an eternal license?

    Regards,

    Johannes Kistemaker

    #1267220

    Hi Nikko,

    I have the exact same problem. My client has hosted their site with GoDaddy. I get this error:

    Access to font at ‘https://secureservercdn.net/160.153.138.219/a0x.891.myftpupload.com/wp-content/themes/enfold/config-templatebuilder/avia-template-builder/assets/fonts/entypo-fontello.ttf&#8217; from origin ‘https://vs4business.co.uk&#8217; has been blocked by CORS policy: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

    However, I don’t think that ‘switching off the CDN’ is a good solution. Yes it brings back the icons, but then the site is not benefitting from the CDN.

    I have found another thread that says to add this code to the .htaccess file:
    <FilesMatch “.(ttf|otf|woff)$”>
    <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin “*”
    </IfModule>
    </FilesMatch>

    I have done this and it did not work.

    I have spent so much time searching for solutions to this. If you have a solution I would love to hear it. The site in question is: http://www.vs4business.co.uk

    #1267068

    But I think you are on a good way, if you already found the places in the source code where it has to be changed.
    f.e on index.php – some lines under your columns (count) you see that filter (line55) avf_post_slider_args

    Now this is not general knowledge like css or jQuery which serves as a basis for something like this.
    It is pure Enfold knowledge. Enfold has a lot of hooks and filters already built in.
    So I look at the list of hooks and filters and try to find out what they are for.
    btw.: the list is not complete – if you search the whole enfold folder for “do_action” you will find a lot of possibilities.

    By the way, it is very helpful to create a small file in which you write down such snippets with the purpose they have and possibly with a link to the post that refers to the application.

    2nd : the documentation is well done and is usually ignored as an aid.

    3rd : Read, read, learn.
    By not only following my questions here, but also reading through questions from other participants, I get a good coverage of problems that can arise using the Enfold theme. Every question that is asked here – could also be a question from my customers to me.
    If you look at my postings from the beginning here, you’ll see that I wasn’t exactly the expert either. The trick is to question the answers as to why the solutions offered work.

    #1266720

    Hey Yossi,

    Thanks for the screenshots. Please try the following in Quick CSS under Enfold->General Styling:

    .rtl.search h2.post-title {
        margin-right: 60px;
    }

    Best regards,
    Rikard

    #1266719

    Hi Victoria,

    I’m sorry for the delayed response. Below is an image of what we are attempting to achieve with the placement of a Search box in the header socket.

    Enfold Theme header socket with Search box

    Thank you again for all of your help. Enjoy the day!

    All the Best,
    Nathan

    #1265992

    Topic: Missing Mobile Menu

    in forum Enfold
    promosapien
    Participant

    Hello Enfold Team,

    I discovered that my mobile menu isn’t visible this morning. Just a white background with the search and close menu icons. Can you please suggest how I can troubleshoot this issue? I’ve included my website & admin details in the private content field. Thank you.

    gfnzit
    Participant

    Hello,

    my company wants to use a WordPress Enfold Setup to publish different landingpages. For example:

    Every landingpage should have it’s own Google Analytics Property. Our marketing needs this kind of setup. For example:

    The Problem: We’re using the plugin Borlabs Cookies. In Borlabs we can only use Google Analytics Key(s) for the whole domain. We cannot define different cookies for different paths.

    The only solution I found was to manipulate the JavaScript-Settings. For example:

    • if (window.location.href.search(“/pizza-landingpage/”) >= 1) { // Property 1}
    • if (window.location.href.search(“/pasta-landingpage/”) >= 1) { // Property 2}
    • if (window.location.href.search(“/burger-landingpage/”) >= 1) { // Property 3}

    I do this within the Borlabs Settings in normal backend.

    It works. But it seems a bit fishy. Unfortunaly I don’t find a similar problem in web. Did anyone have an idea? Or isn’t it fishy and all is fine?

    I know, we could add Analytics snippets to single pages. But this will undermine the Borlabs Cookie Consent Banner an we come in trouble with the privace policy. Thats the problem I want to fix.

    Thank you!

    • This topic was modified 5 years, 3 months ago by gfnzit. Reason: Editor dont like my HTML-Breaks
    #1265792

    Hi RubenHD,

    Just saw this while checking for an issue. AMP is not necessary for competitive mobile searches.

    I do not use it and have managed to get enfold sites performing at 90+ in the current Google Lighthouse speed tests – with further improvements to be implemented around fonts and analytics.

    AMP is designed to speed up the loading times of blog entries – It is therefore not going to be compatible with all ALB elements in Enfold which add complexity and functions over the standard WP theme. The same applies for most premium WP themes with complex features. AMP normally removes animations and other complexities in order to reduce load times (reducing the size of the AMP CSS files). Its literally what AMP is designed to do.

    If you are looking to improve the load times for your site without compromising on the design – try any of the following:

    -Update your .htaccess file or use a plugin to ensure features like gzip compression and cache age are set and enabled
    -Add a caching plugin and set the cache length to 30 days.
    -Compress your images before you upload them
    -Enable Lazy Load in the Enfold performance panel and enable all other performance related settings
    -Ensure responsive images is turned on in the Enfold performance panel
    -Use a CDN – Like Jetpack (Free) or Cloudflare (also free)
    -Enable lazyload and image optimisation in jetpack (If enfold is set up correctly it works perfectly)

    I hope this helps.

Viewing 30 results - 1,171 through 1,200 (of 7,495 total)