Snippets

How to add FacetWP Reset Filters button

If you want to add a button to reset your FacetWP filters, you may use the snippet below: Reset FacetWP Facets Reset all facets: FWP.reset(); Or reset one facet: FWP.reset(‘make’); Or reset multiple facets: FWP.reset([‘make’, ‘model’, ‘year’]); Or reset individual values: FWP.reset({ ‘make’: ‘audi’ }); Use onclick for buttons and other HTML elements: <button value=”Reset” onclick=”FWP.reset()” class=”facet-reset”>Reset</button> Don’t know where to write this code? …

How to add FacetWP Reset Filters button Read More »

Wordpress-sidebar-widget-style-1

How to style your WordPress Sidebar Widget

Widget Title Style – 1 If your width title wrap directly under heading tag like H2, H3, etc like the below screenshot then use .widget .widget-title If the actual text wrap with another inline element like span the below screenshot then you need to add that extra wrapping tag also .widget .widget-title span

WordPress: How to make parent menu item clickable when they have a submenu

Problem: Parent menu item not clickable when submenu enabled Some WordPress theme by default disables parent menu links when they have dropdown menu items. If you have a submenu enabled the parent menu item is no longer clickable to link through to the page, it just opens the submenu. We’ll make the parent menu items …

WordPress: How to make parent menu item clickable when they have a submenu Read More »

Hoe to Style Envira Gallery Pagination

You need Envira Gallery Pro and Envira Gallery Pagination addon to active Pagination in Envira Gallery. Paste this code in your Theme Custom CSS section or If you have Envira CSS addon then Misc >> Custom Gallery CSS section.

How to center align the submit button on the Divi Contact Form Module using Flex

Divi does use the flex property for contact module Submit button (as you can see in the image below) you can center align the button very easily. We need to remove the float and horizontally center the button. Flex uses the justify-content property to align the flex items at the center of the container. or …

How to center align the submit button on the Divi Contact Form Module using Flex Read More »

How to remove the word 'Archive' from Category, Tag and Custom post type title+

How to remove the word ‘Archive’ from Category, Tag and Custom post type title

If you would like to remove the “label” of the “Category:”, “Tag:”, “Author:”, “Archives:”, “Date:”, “Post Format:” and “Other taxonomy name:” in the archive title, follow the steps. If you look at the source code of get_the_archive_title(), you will see that there is a filter supplied, called get_the_archive_title, through which you can filter the output from the function. Access function.php file via FTP or WordPress …

How to remove the word ‘Archive’ from Category, Tag and Custom post type title Read More »

How to open all external links in a new window without Wordpress plugin

How to open all external links in New Window or New Tab without a WordPress plugin

Do you want to open external links from your blog posts in a new window? Opening external links in a new window allow your users to visit the link without leaving your website. I will also show different code snippets to do that, so you can choose the one that works for you. For this, …

How to open all external links in New Window or New Tab without a WordPress plugin Read More »

Scroll to Top