Use Yoast SEO Primary Category For Related Blog Posts
// This is now the default in the theme since v5.0, no need for custom code.
// This is now the default in the theme since v5.0, no need for custom code.
The page header title file in the Total theme is located at partials/page-header-title.php but if you want to alter something so simple as the html tag it's best to use the wpex_page_header_title_args arguments. The following snippet is an example of…
This code will remove the standard font options from any theme typography setting such as those located in the Customizer or in Total VC modules.
If you add the code below to your child theme's functions.php file it will add a new shortcode that you can use on your site to insert dates anywhere on the site. If using it in a post slider make…
Below is some javascript for creating a simple toggle row show/hide functionality. The way it works is you would give any element that has a link the classname "my-hidden-row-toggle" (as always change my- to your unique prefix), give the row…
This CSS snippet can be added to your site if you want to always display your sidebar mobile menu dropdowns instead of using the toggle affect.
The Total theme includes various built-in color accents to choose from for buttons. If you need to add custom options you can hook into the theme's filter to add new settings. See the example below. This will add the new…
body.paged .wpb_animate_when_almost_visible { opacity: 1; filter: alpha(opacity=100); -webkit-animation-duration: 0s; animation-duration: 0s; -webkit-animation: none; -webkit-transform: none; -ms-transform: none; -o-transform: none; transform: none; }
The Total theme has various functions for displaying social links on the site and in Total 4.4 we've aded a global filter named "wpex_social_profile_options_list' which can be used to add/remove items from the social profile options as well as modify…
The following example shows you how you can use the "wpex_get_user_social_profile_settings_array" theme filter to add new social options for your site users to display in the author bio section on the live site.