Forum Replies Created
-
AuthorPosts
-
Fixed it sorry! Forgot to remove a script I was testing from Functions.php.
Sorry close or delete this thread!
See old results in private section. I have just compared the water falls and the new update is quicker and loads less resources, so I think that the new update is probably quicker in reality. I am keen to know your thoughts.
September 6, 2019 at 12:15 pm in reply to: 4.6 update Privacy message no longer appearing on Login screen #1134894I can confirm that this issue is fixed. Thanks Rikard.
Cheers Ismael,
Appreciate the help.
As Promised, the solution below changes the default search form to make it:
-Show products in a grid
-Add SKUs to the standard search
-Fixes the Ajax search so it all matchesReplace the search form
Edit the searchform.php (use your child theme to make a copy) Replace the default form with the following:<form role="search" method="get" id="searchform" action="<?php echo home_url( '/' ); ?>"> <div> <input type="text" id="s" name="s" value="<?php if(!empty($_GET['s'])) echo get_search_query(); ?>" placeholder='<?php echo $search_params['placeholder']; ?>'> <input type="submit" value="<?php echo $icon; ?>" id="searchsubmit" class="button <?php echo $class; ?>" /> <input type="hidden" name="post_type" value="product"> </div> </form>
Add SKUs to the default search
The guy who put this together is brilliant thank you! Add the following to your child theme’s functions.php file:/** __________________________________ ENHANCE THE STANDARD SEARCH * Join posts and postmeta tables * This one hels to include the SKU in tzhe standard search * http://codex.wordpress.org/Plugin_API/Filter_Reference/posts_join */ function cf_search_join( $join ) { global $wpdb; if ( is_search() || !empty($_REQUEST['s'] )) { $join .=' LEFT JOIN '.$wpdb->postmeta. ' ON '. $wpdb->posts . '.ID = ' . $wpdb->postmeta . '.post_id '; } return $join; } add_filter('posts_join', 'cf_search_join' ); /** * Modify the search query with posts_where * * http://codex.wordpress.org/Plugin_API/Filter_Reference/posts_where */ function cf_search_where( $where ) { global $pagenow, $wpdb; if ( is_search() || !empty($_REQUEST['s'] ) ) { $where = preg_replace( "/\(\s*".$wpdb->posts.".post_title\s+LIKE\s*(\'[^\']+\')\s*\)/", "(".$wpdb->posts.".post_title LIKE $1) OR (".$wpdb->postmeta.".meta_value LIKE $1)", $where ); } return $where; } add_filter( 'posts_where', 'cf_search_where' ); /** * Prevent duplicates * * http://codex.wordpress.org/Plugin_API/Filter_Reference/posts_distinct */ function cf_search_distinct( $where ) { global $wpdb; if ( is_search() || !empty($_REQUEST['s'] ) ) { return "DISTINCT"; } return $where; } add_filter( 'posts_distinct', 'cf_search_distinct' ); /* END Search includes SKU */
Hope this helps other people. It makes the Search in Enfold do what it should when Woocommerce is installed.
I’ll give that a try and reply here if it does what I need it to do.
Another happy customer. Greenstone Heat Pumps and Underfloor Ltd approached Think Jarvis looking to update and optimise their company website.
We took their existing WordPress installation and migrated over to the Think Jarvis Framework – A child theme for Enfold. Then worked on the new version in the background which is now live. We also host the website guaranteeing it’s performance and provided a professional email service.
We use a custom caching setup (using .htaccess) and either WP-Optimize or WP Super Cache. We also use Jetpack’s image and asset CDN as it offers a free image and wordpress asset content delivery service. I would recommend that Enfold is not used with NGINX servers – We have had problems with some hosting providers who offer an optimised WordPress environment. We use a Linux Apache server for all of our customers as this seems to allow better optimisation.
I would also recommend the ‘Stop WordPress generating image sizes’ plugin and change the default media sizes to 767×767 (enfold mobile breakpoint) and 989×989 (enfold tablet/large mobile breakpoint). I would also pick and choose which of Enfold’s default image sizes you actually need to prevent a bloated image library.
The new website can be seen at :
https://www.greenstoneheat.co.uk-
This reply was modified 5 years, 7 months ago by
thinkjarvis.
I have just launched my company website. Think Jarvis Design and Marketing. We use Enfold, a custom child theme, caching and optimisation for a majority of our websites. Great platform to get things done quickly and consistently.
Our services include website design, website hosting and SEO using the Yoast SEO plugin.
Still needs a bit of work on the content and a few service pages adding but the best pages are linked below:
Company website
https://www.thinkjarvis.co.uk/Other websites designed using Enfold with a custom child theme:
https://www.thinkjarvis.co.uk/portfolio/Custom Portfolio Entry.
https://www.thinkjarvis.co.uk/portfolio/playground-equipment-design-and-visualisation/-
This reply was modified 5 years, 7 months ago by
thinkjarvis.
This solution is spot on thank you.
Its because pixels are calculated to decimal places but then rounded when displayed creating a small discrepancy.
I have applied this to all of my client sitesAugust 15, 2019 at 10:29 am in reply to: Transparent header/logo area not working on mobiles #1127874Thanks I ended up altering the design in the end.
No problems. The customer site is now live and starting to rank.
Never replied to this. Now that Enfold can scan the footer for shortcodes, I have simply replaced the social icon widget with a shortcode for all of my clients sites.
Cheers guys.
Hi Victoria,
Sorry I think you have misunderstood.
I am talking about the Grid row items. It is nothing to do with text.
See screenshot below:
https://www.thomasjarvisdesign.co.uk/example.jpgThe 3 grid row images are not the same size, which is leaving a small gap under image 2 and image 3
I have had this problem affect other sites with the same setup. The problem does not appear in Microsoft Edge. Only Chrome. It seems to resize grid row column 1 differently to 2 and 3.
Sorry the widget in column 2 in the footer
I missed a bit.
-
This reply was modified 5 years, 7 months ago by
-
AuthorPosts