How to install wordpress theme’s plug-ins?

It sounds like you are trying to upload archive files to the plugin directory. You can’t do that. You need to upload the original source files. Unzip or unrar the plugins (s)FTP the decompressed files to wp-content/plugins Activate the plugins from the backend control panel That should be all you need to do. Some of … Read more

Theme specific plugin, how?

You can ask for the activation of the theme. You can get the value of the options values templateand stylesheet. The stylesheet get the active style, a benefit if the user use an child theme. As example if ( ‘my_theme’ === get_option( ‘stylesheet’ ) ) …. Also you can use the hooks for template and … Read more

Line break no working on theme

It is possible to add line breaks using   in the “Text” view like so: https://cloudup.com/cb5PCT2sWRP One thing to be aware of is that once you add the HTML for non-breaking spaces, you must remain in the “Text” view for future edits; switching back and forth to the visual editor will remove the above code.

Plugin to load theme if mobile and specific page

Try: add_filter(‘template’, ‘change_theme’); add_filter(‘option_template’, ‘change_theme’); add_filter(‘option_stylesheet’, ‘change_theme’); function change_theme($theme) { if ( wp_is_mobile() ) { $theme=”SelectThemeMobile”; } $page = get_page_by_title( ‘Title for 145’ ) if ( is_page($page->ID) and wp_is_mobile()) $theme=”SelectThemeOne”; // Replace name below with hook for missing stylesheet wp_enqueue_style( ‘registered name of missing mobile stylesheet’); } return $theme; } I believe you must iterate … Read more

WP Knowledge Base Theme bug – Subcategories and Articles, Need to change WP_Query

H’okay, so, using this resource, I was found that going into the template-knowledgebase.php file and replacing the cat keyword with category__in (that’s a double underscore) did only return the articles who’s parent were the category we were looking at. I also edited the else statement of the if to be endif and removed the extraneous … Read more