How to make a custom theme with plugins in WordPress? - wordpress

I have created my own theme in WordPress. In that theme i'm using other plugins ( jQuery Photo slider ). Now I want to use this theme for a different website. Can i save plugins with the theme? First off, is this even possible?
This is my first attempt in WordPress.

You are not allowed to add plugins along with your theme, but you can always send a readme along with the theme, telling the user what plugins you want them to use, or you could just zip the plugins located in the plugin folder and make that as a custom extra choice to apply when using your theme.

Related

WordPress automatically downloaded a theme?

I'm trying to figure out if I've been hacked. I made a custom WordPress theme, named 'claremont'. Somehow it got replaced with a downloaded theme, also named 'claremont'. Does WordPress ever automatically do this?
I'm not running any plugins that I'd suspect would do this - just Gravity Forms, The Events Calendar, BBPress and addon plugins for those. Any ideas?
If you create a custom theme and that theme has the same name as the theme available in WordPress.org themes repository (and 'claremont' exists there: https://wordpress.org/themes/claremont/), and if the WP.org theme has the higher version number, WordPress will include this theme for the update.
But, in a normal case, themes are not auto updated, so you have either run the update without checking what is updated, or your WordPress is set to auto update themes too.
It is always a good idea to check theme name in WP.org before using it or add some unique identifier in the theme name to avoid name conflict issues.

How to write an admin theme plugin in wordpress

I want to change admin theme in wordpress. I have created a simple admin theme plugin (including CSS and js files) to change some simple CSS, however, there are some layout page need to be totally changed. I am wondering if anyone can help me to find an easy to change the whole layout theme without changing source code. Is it possible to overwrite the layout in the admin theme plugin? If yes, how to do it?
You should create "Theme Option Page" instead of creating plugin for Theme setting like colors and other style in wordpress ! For reference :
https://codex.wordpress.org/Creating_Options_Pages
It will be best option as per my experience in wordpress !

Disable Bootstrap in Wordpress Admin Panel

I installed woocommerce and the product data tabs are invisible because of a bootstrap style conflict.
I don't know why wordpress takes enqueued styles and applies them to the admin panel.
How do I prevent an enqueued style from being applied to wp-admin?
I can assure you WooCommerce does not use nor load Twitter Bootstrap in either front-end or back-end of WordPress. In fact, in order to wrap WooCommerce templates in Twitter Bootstrap classes, one would need to install a special plugin for it: WooCommerce TwitterBootstrap (which looks abandoned).
It must be some other plugin that's loading it. Are you sure it's Twitter Bootstrap that's causing the conflict? Please note there are a lot of WooCommerce extensions which are in fact separate plugins.
You can view a full list of installed plugins in WordPress dashboard. If you want to find the culprit, disable them one by one.
By default, WooCommerce plugin doesn't use Bootstrap and shouldn't load the styles or scripts in your WordPress dashboard.
You have a plugin or theme that make it to load the Bootstrap framework in your WordPress. Try to disable the active plugins one by one or check in their source code which styles or scripts they load. I will suggest to check the functions.php file of your theme too.

Overwriting Builder WooCommerce Templates from Child Theme

I'm having some issues overwriting a Builder WooCommerce (a Themify plugin that interacts with WooCommerce http://themify.me/addons/woocommerce) template from with a child theme. My child theme is set up and working, and I can successfully overwrite the WooCommerce product page images from (childTheme/woocommerce/single-product/product-image.php). That all works great, but when I try and overwrite a template within the Builder WooCommerce Plugin (product listing template) nothing seems to happen.
I've copied the appropriate template file into (childTheme/builder-woocommerce/template-products-list.php) and made modifications, but they are not coming through at all. Is it for some reason why overriding this plugin doesn't work?
I contacted Themify support, and was told:
Child theme can only save theme files. Builder woocommerce is a addon/plugin. It is not possible to save plugin files through child theme. You can copy customized files manually and replace it with the updated file after plugin update.
Unfortunately, it doesn't seem possible to make changes to any template file within this plugin from a child theme.

WordPress Adding a template via a plugin

I'm writing a plugin for a website, and one of the pages on the websites requires a custom template. How can I add a template via the plugin, without having to go into the theme's folder and adding it manually?
Any help would be appreciated.
if you don't want to change the existing theme you can always create a child theme: Wordpress Codex: Child Themes

Resources