Viewing 30 results - 1,171 through 1,200 (of 7,502 total)
  • Author
    Search Results
  • #1272070
    natas442
    Participant

    I am using a plugin for woocommerce to search for products. The search box works great, but the search results page gives the following errors:

    Notice: Trying to get property ‘rewrite’ of non-object in /home/mailx/public_html/wp-content/themes/enfold/framework/php/class-breadcrumb.php on line 380

    Notice: Trying to get property ‘labels’ of non-object in /home/mailx/public_html/wp-content/themes/enfold/framework/php/class-breadcrumb.php on line 392

    Notice: Trying to get property ‘name’ of non-object in /home/mailx/public_html/wp-content/themes/enfold/framework/php/class-breadcrumb.php on line 392

    The site is https://www.mailboxesbybathx.com/

    #1271620

    Hey Simo,

    Please add following code to bottom of Functions.php file of your child theme ( https://kriesi.at/documentation/enfold/child-theme/ ) in Appearance > Editor

    function avia_remove_woocommerce_frontend_search_params() { 
    remove_action('woocommerce_before_shop_loop','avia_woocommerce_frontend_search_params', 20);
    } 
    add_action( 'init', 'avia_remove_woocommerce_frontend_search_params');

    Regards,
    Yigit

    #1271483

    Hi. I recently installed SearchWP on my Enfold theme site and used the code above in my functions.php file, but the ajax search isn’t working. It’s creating the following error: admin-ajax.php 500 (Internal Server Error)

    Any suggestions?

    #1271352
    beeldlijn
    Participant

    Hi,

    Even 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 shows “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

    #1271257

    In reply to: The Future Of Enfold

    Enfold is awesome, and if you just keep updating it, this theme will have a very long life. The improvement I’d like to see is a re-working of ENFOLD > General Styling. Customizing anything in this area is a guessing game. For example, how would I change the background color of a search box? Only trial-and-error will tell, if you have that much time. Also, we all need better burger menus for mobile. A little work here would go a long way.

    Keep up the good work! It’s a great theme.

    werbeagenturlauf
    Participant

    Hi @enfold!

    How can I set the search symbol that way the it shows part of the text of the search word. In my case it shows only the headline and than you habe to scroll the whole page to find the searched context. would be great if also the link to the #partofpage

    thanks for your feedback
    Michael F

    Hi,

    Thanks for the update. It’s better if you use a dedicated 404 page, otherwise your home page will always return a 404 error message to search engines for example. If you want to copy your home page, then you can enable debug mode in order to see builder shortcodes: https://kriesi.at/documentation/enfold/intro-to-advanced-layout-builder/#debug-mode, then simply copy all the shortcodes to your new 404 page.

    Best regards,
    Rikard

    #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, 4 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, 4 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

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