-
Search Results
-
Hi,
I’m looking to improve the search functionality of my website and I was interested in adding google custom site search or SearchWP.
How can I integrate CCS into my site, both in the ajax search and the standard search results page?
Thank you!
ChrisHi – i received the following email from Webmaster tools for a site i maintain running Enfold. What does it mean? I’m not doing anything out of the ordinary, as you can see: http://www.unchartedantiques.com
Message type: [WNC-351207]
Webmaster Tools
Stop redirecting smartphone users to the homepage of http://www.unchartedantiques.com/Dear webmaster of http://www.unchartedantiques.com/,
Google systems have detected that your desktop site URLs redirect smartphone users to the homepage of the smartphone site rather than the page they found in Search results. This critical issue causes problems for Googlebot for smartphones because it can’t access your smartphone URLs. It also confuses your users.
Start now to fix this problem:
1 Check the Webmaster Tools Crawl report.
The Smartphone crawl errors section shows faulty redirect examples.
See error examples
2 Debug using the example URLs.
Investigate your server settings by starting with example URLs.
3 Configure your server correctly.
Redirect smartphone users to the equivalent URL on your smartphone site.
4 Use desktop page if there is no smartphone equivalent.
If some of your desktop URLs don’t have a smartphone equivalent, allow users to remain on the desktop.Topic: SVG Logo Size & Position off
I’ve set enfold to display my logo as an svg file, but it’s aligned the logo/container/img at the center of the page, and set the size larger than I’d like it to be (or larger than the standard logo 340px width)…
I searched the support forum and found a similar discussion which said that adding the following css could fix it…
#header_main .logo img, #header_main .logo {
left: 0;
float: left; }This did not fix – any other thoughts / custom css that could make this work
site is http://lifeinconnection.com
Thanks
Hi there,
First of all, amazing theme with endless possibilities.
I’m working for a client who’s site i’m transforming to WP with Enfold as theme. The special thing is, it needs to be a 1:1 copy of the original site.
I’ve got it for 95%, only running in to 2 little problems.
1: Search result page need to be changed from a 1/1 layout to a 1/2 (empty) | 1/4 (results) | 1/2 (static image).
2: On the page with no results, i want to remove the line *searchresults for: searchterm*
Could you guys give me a hand.
Current code of Search.php
<?php global $avia_config; /* * get_header is a basic wordpress function, used to retrieve the header.php file in your theme directory. */ get_header(); $results = avia_which_archive(); echo avia_title(array('title' => $results )); ?> <div class='container_wrap container_wrap_first main_color <?php avia_layout_class( 'main' ); ?>'> <div class='container'> <main class='content template-search <?php avia_layout_class( 'content' ); ?> units' <?php avia_markup_helper(array('context' => 'content'));?>> <?php echo "<h2>".__('Zoekresultaten')."</h2>"; ?> <?php if(!empty($_GET['s']) || have_posts()) { /* Run the loop to output the posts. * If you want to overload this in a child theme then include a file * called loop-search.php and that will be used instead. */ $more = 0; get_template_part( 'includes/loop', 'search' ); echo "<h4 class='extra-mini-title widgettitle'>{$results}</h4>"; } ?> <!--end content--> </main> <?php //get the sidebar $avia_config['currently_viewing'] = 'page'; get_sidebar(); ?> </div><!--end container--> </div><!-- close default .container_wrap element --> <?php get_footer(); ?>Current code of loop-search.php
<?php global $avia_config; // check if we got posts to display: if (have_posts()) : $first = true; $counterclass = ""; $post_loop_count = 1; $page = (get_query_var('paged')) ? get_query_var('paged') : 1; if($page > 1) $post_loop_count = ((int) ($page - 1) * (int) get_query_var('posts_per_page')) +1; $blog_style = avia_get_option('blog_style','multi-big'); while (have_posts()) : the_post(); $the_id = get_the_ID(); $parity = $post_loop_count % 2 ? 'odd' : 'even'; $last = count($wp_query->posts) == $post_loop_count ? " post-entry-last " : ""; $post_class = "post-entry-".$the_id." post-loop-".$post_loop_count." post-parity-".$parity.$last." ".$blog_style; $post_format = get_post_format() ? get_post_format() : 'standard'; ?> <article <?php post_class('post-entry post-entry-type-'.$post_format . " " . $post_class . " "); avia_markup_helper(array('context' => 'entry')); ?>> <div class="entry-content-wrapper clearfix <?php echo $post_format; ?>-content"> <header class="entry-content-header"> <?php echo "<span class='search-result-counter {$counterclass}'>{$post_loop_count}</span>"; //echo the post title $markup = avia_markup_helper(array('context' => 'entry_title','echo'=>false)); echo "<h2 class='post-title entry-title'><a title='".the_title_attribute('echo=0')."' href='".get_permalink()."' $markup>".get_the_title()."</a></h2>"; ?> <span class='post-meta-infos'> <time class='date-container minor-meta updated' <?php avia_markup_helper(array('context' => 'entry_time')); ?>> <?php the_time('d M Y'); ?> </time> <?php if(get_post_type() !== "page") { if ( get_comments_number() != "0" || comments_open() ) { echo "<span class='text-sep'>/</span>"; echo "<span class='comment-container minor-meta'>"; comments_popup_link( "0 ".__('Comments','avia_framework'), "1 ".__('Comment' ,'avia_framework'), "% ".__('Comments','avia_framework'),'comments-link', "".__('Comments Disabled','avia_framework')); echo "</span>"; } } $taxonomies = get_object_taxonomies(get_post_type($the_id)); $cats = ''; $excluded_taxonomies = apply_filters('avf_exclude_taxonomies', array('post_tag','post_format'), get_post_type($the_id), $the_id); if(!empty($taxonomies)) { foreach($taxonomies as $taxonomy) { if(!in_array($taxonomy, $excluded_taxonomies)) { $cats .= get_the_term_list($the_id, $taxonomy, '', ', ','').' '; } } } if(!empty($cats)) { echo "<span class='text-sep'>/</span>"; echo '<span class="blog-categories minor-meta">'.__('in','avia_framework')." "; echo $cats; echo '</span>'; } ?> </span> </header> <?php echo '<div class="entry-content" '.avia_markup_helper(array('context' => 'entry_content','echo'=>false)).'>'; $excerpt = trim(get_the_excerpt()); if(!empty($excerpt)) { the_excerpt(); } else { $excerpt = strip_shortcodes( get_the_content() ); $excerpt = apply_filters('the_excerpt', $excerpt); $excerpt = str_replace(']]>', ']]>', $excerpt); echo $excerpt; } echo '</div>'; ?> </div> <footer class="entry-footer"></footer> <?php do_action('ava_after_content', $the_id, 'loop-search'); ?> </article><!--end post-entry--> <?php $first = false; $post_loop_count++; if($post_loop_count >= 100) $counterclass = "nowidth"; endwhile; else: ?> <article class="entry entry-content-wrapper clearfix" id='search-fail'> <p class="entry-content" <?php avia_markup_helper(array('context' => 'entry_content')); ?>> <?php _e('De zoekopdracht heeft geen resultaten opgeleverd.'); ?> </p> <?php echo "</article>"; endif; echo avia_pagination('', 'nav'); ?>Kind regards,
MarcHi,
what is the right way to find out solution not by all themes , but in the Enfold theme`s support forum only ?
this is all forums Search button – http://c2n.me/iKpixu
There is no advanced search button ?thanks
in the page showing the features of Woocommerce’s Product Finder plugin/widget, the results page shows a title displaying the results of the search just conducted.
but with Enfold, i get nothing – the results display fine, but nothing else. I’ve looked in settings, there’s no way to enable/disable titles on search pages. So what’s going on? see the example here:
http://www.woothemes.com/products/product-finder/
I’ll include a link to my test site that you can try out for yourself. Make sure you use the Woocommerce search, not the theme search.
thanks so much for your help! you have the best support here.
Hello,
I’m editing One page Portfolio Home page and have several issues:
1. – in Header layout -> Transparency options I have put my Transparency logo, but when I scroll down logo stay visible and overlapping with big logo which I have add.
2. I have import dummy data, but Advanced Layerslider does not working, I have try to create new Advanced Layerslider, but it want show at all.
3. How to move search to be last in a row? After social icons?
WP 3.9.2, Enfold 2.9.1
I just found this topic about renaming the labels of the search results.
While @Ismaels solution works perfect with my custom post types, it doesn´t work for my portfolio items. I am using the german version of enfold and here “portfolio items” are translated to “Portfolio Einträge”. The problem is that the solution doens´t work if a german umlaut (in this case “ä”) is inside the label name.add_filter('avf_ajax_search_label_names','avf_ajax_search_assign_label_names', 10, 1); function avf_ajax_search_assign_label_names($label) { if($label == 'Portfolio Einträge') { $label = 'Mitarbeiter'; } else if($label == 'Produkte') { $label = 'Downloads'; } else { $label = $label; } return $label; }If I change the translation (.po / .mo files) to a name without “ä” (e.g. from “Portfolio Einträge” to “Portfolio Eintraege”), it works without a problem. Do you have any idea of how to get the code to work with the german translation? Thanks.
