I have gone through Yii documentation and successfully implemented two different themes for back end and front end of the website. Yii doesnt have good themes and I found themeforest having awesome bootstrap themes. So I installed Yii-booster and downloaded a themeforest theme with bootstrap support.
I was wondering how to integrate it?
1)Do I have to make a new folder in themes folder, and replace css,js, images folder in root
directory
OR
2)Replace the js,css and other folder/files at path protected/extensions/bootstrap/assets
OR
3) Any other way ??
Apply a simple logic. Just copy the theme and make particular layout ,then call the layout in the controllers according to your need.
Related
I am creating the theme for Opencart 2.2.
While creating a Opencart theme do I always need to copy the files from the default theme? What about I want to create my own layout? Is there any good tutorial are available for creating a opencart theme without using the default theme?
Looking for your reply.
Thanks and Regards,
Chirag
If you are creating your own new custom OpenCart theme, use default theme folder structure. If you want to change/improve functionality of your template, you need to edit controller and models too.
But do not change core files. Always use virtual mode to modify files.
In OpenCart, there are four ways to modify its core functionality:
vQmod, OCMOD, Override Engine and Event Handlers
vQMOD / OCMOD / Override engine / Event handlers allows developer to modify files without changing any of core file. This means that if a modification is removed none of the original OpenCart files need to be restored or fixed.
Creating a new theme for OpenCart 1.5 used to be pretty easy - make a folder in the theme directory and copy only the files from the default theme that you want to change. And that was about it.
OpenCart 2 is now outdated, 3 should be used for new builds ...
OpenCart 3 brings new features, but creating a theme is a little more difficult.
There are instructions and a free downloadable template theme here:
https://www.antropy.co.uk/blog/how-to-create-an-opencart-3-theme/
I am trying to include the Redux Framework in my theme. I decided to try the online builder of Redux Framework: http://build.reduxframework.com/ to generate the necessary files for me.
The builder of Redux provides two options:
(1). To generate and export the admin folder.
(2). To generate and export a starter theme with the Redux settings.
I think i need option (1) since i have a theme already in my hands.
The admin folder contains the following:
(1). The Redux Builder generated (.Json) file.
(2). The admin folder itself - which contains the framework and extensions folders along with two (.php) files: (admin-init.php) and (options-init.php).
The documentation of Redux Framework teaches us how to load the config file of the framework inside our theme. It does not inform us through what to do with the exported admin folder and how to use it in our theme - in case we chose to use the online builder.
The online builder of Redux framework states the following:
Download just the admin folder portion. This will provide you with a
folder you can place in a theme or plugin and include
~/admin/admin-init.php to initate it.
Side note: It is written as "initate" instead of "initiate". If any of the developers happen to read this question, it may be a nice thing to correct this small typing mistake.
My Question:
(Q1). How should i initiate the admin file? I couldn't find that in the documentation. Is it about copying its content to the (functions.php) file after fixing the directories? Or something else is required?
Include the Redux framework.
Copy the generated admin folder to your theme.
Copy the contents of admin-init.php to functions.php file of your theme.
Fix the directories names and files depending on your theme's structure.
Is that right or i am missing something up there?
Any clarifications, answers or comments will be greatly appreciated.
Thanks in advance for your help!
There is another way to initiate, i don't know if it's the best way or not
in my themes, i add :
require get_template_directory() . '/admin/admin-init.php'; )
in my function.php so i don't have to fix the directories files and names in redux admin folder depending on my themes.
Lead dev of Redux here. Good call on the spelling check.
Just include that file and that's it! :)
My question is straightforward, how can I move a cs-cart theme only from a server to another without moving anything more than it?
I would recommend you to
1) Copy the theme files from you original store to the new store theme respository
The installed themes are located at design/themes, the themes repository is located at var/themes_repository.
So you need to do something like this in case the stores are on the same server
cp -R ./design/themes/MY_THEME ../new_store/var/themes_repository
In you case with different servers I would recommend you to backup you theme folder ./design/themes/MY_THEME and extract on the new server to the ./var/themes_repository folder.
After that you will find you theme in the "Browse all available themes" tab in the CS-Cart themes page.
2) Also you can find necessary to import the location for you store - it can be done easily using CS-Cart built-in Export/Import layouts feature.
You can find it in Design -> Layouts under Gear button.
Here you can find more details http://docs.cs-cart.com/4.2.x/themes/layout.html
I'm trying to get the Redux Framework working with my "blankslate" theme. I installed the plugin (downloaded the latest zip for Redux). Then I used the Redux Builder tool to create an admin folder. I copied the admin folder to my themes folder. The Redux menu item was successfully added to WordPress' left nav (in my case I named it CMS) and all the fields work and can be saved. But there is constantly an error that says "This theme recommends the following plugin: Redux Framework." Redux is obviously installed, so how can I get this error to go away? I'm sure there's just a configuration option somewhere that needs to be set.
The issue here is you are loading TGM before Redux has had a chance to load. Delay calling TGM until after a hook like this:
add_action('plugins_loaded', 'tgm_init_function', 25);
This will force all the plugins to load before it tries to run TGM. My guess is your plugin is named higher in the alphabet than Redux, and thus it's loaded first. ;)
I want to develop WordPress themes and plugins. What do I need to know to do this?
I have knowledge of PHP, HTML, CSS and JavaScript. I have developed a few projects using these. What is the best place to start (except Codex), is there any book? Where can I know how the core of WordPress works?
Check out this neat infographic for a good introduction to the anatomy of a wordpress theme.
http://yoast.com/wordpress-theme-anatomy/
Professional WordPress Plugin Development
Digging into WordPress
For Plugins:
There are two places where you can code for plugin in Wordpress.
1. functions.php
2. Create a folder in plugins folder, inside that folder. Create a blank .php file, and code there.
For Themes:
As you asked for learning wordpress themes. Go to themes folder, try to get the structure and flow of wordpress default themes.
You've to code within themes folder.