Articles of themes

Can I filter a function created by a theme or a plugin?

I use a very modern and fully-featured theme that has a lot of custom functions. Something like Avada, Enfold, etc. There’s this function called medigroup_mikado_custom_breadcrumbs that’s being called at wp-content/themes/mytheme/framework/modules/title/title-functions.php and I’m trying to filter it in functions, with this code: function custom_debug_breadcrumb($breadcrumb) { $breadcrumb = “test”; return $breadcrumb; } add_filter(‘medigroup_mikado_custom_breadcrumbs’, ‘custom_debug_breadcrumb’, 10); However, no […]

Custom post type is using the index.php template

Here i read that if i create a custom post type, WordPress will look to its specific template first, then it falls back to single.php. I registered a custom post type (i’ll show the taxonomy as well), which is properly shown in admin; i can create them well and i’ve been able to add them […]

speed up pagination for huge database

we have a wordpress with 1 million of product post and 15000 pagination page on archive , we have optimized all the website with good performance, but we have detected the pagination of archive is slow on wordpress, a example of query i have on archive page is like this: SELECT SQL_CALC_FOUND_ROWS wp_posts.ID FROM wp_posts […]

Is it possible to open a page with a different theme?

Is it possible to open a page (eg.: home) with a different theme? The idea is to apply a different them to a page in particular. If yes, what would be the best way to achieve this? By capturing the request and temporarily changing the theme? The downside is that in concurrent calls things might […]

Switching Theme and back will reset the previous Theme's settings?

Everyone, I have a WordPress site on my hands, and I wanted to try a new Theme; I changed the active one and, unsatisfied, I selected again the previous one… and I found the website’s appearance to be changed. Is there a safe way to restore the site’s appearance or are the settings lost and […]

Multiple image logo for theme

My website has a logo and this logo have 2 states (i.e. online and offline ). Each of them has an image that will be uploaded to the media. What I am trying to achieve is that, when hovering on, the state of the logo changes (this can be done quite easy). However, in order […]

Make function that tells user for required plugin to run theme

How to Make function that tells user to install particular plugin that required for the theme?

blank white page when post/update/change option etc

regards , i have a problem in theme i make it after test the theme on localhost i tried it on a host : when i try post , update , change option i got blank white page then i enabled Debugging mode it gives me those errors Notice: register_sidebar was called incorrectly. No id […]

searchform.php doesn't work properly

I made a searchform.php file to custom my search widget as I read, but when I use the search widget, it doesn’t make the searches well, it sarches in the page of the categorie i’m writing. Is there anything wrong with my code? <form role=”search” method=”get” id=”searchform” class=”searchform” action=”<?php esc_url( home_url( ‘/’ ) ); ?>”> […]

Issue when posting updates/changes to wordress

I have WordPress 4.8.1 installed with the OCMX “Department” theme for WooCommerce. Whenever I update a page or post a new page/slider, I get the following error message: Warning: Declaration of obox_theme_update::fs_connect($directories = Array) should be compatible with WP_Upgrader::fs_connect($directories = Array, $allow_relaxed_file_ownership = false) in /home/…/wp-content/themes/department/ocmx/includes/update-class.php on line 4 Warning: Cannot modify header information – […]