WordPress Redux Framework - Redux admin folder can't find plugin - php

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. ;)

Related

Opencart theme development from scratch

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/

Issues regarding custom theme, plugins not working in Magento

I am using magento custom theme. When I open my product page, while loading the page the default zoom function buttons are visible for a moment. When page load completely the buttons are disappear.
Let us look the images for more info:
Before (while loading)
After page load
Why this happened so? I am installed a new custom theme. This theme not provide any image zoom functionality. I think the zoom buttons are load from frontend\base\default\template\catalog\product\view\media.phtml. Why my site load this page, since I use a custom theme the site should use the theme's media.phtml file. How can I solve this issue?
And when I try to install some product zoom plugins, these are not working in my theme. The plugin files are saved in my default theme directory. And I manually copy the plugin files from default to custom theme directory, but no luck. Please refer the LINK for more details. Is there any way to rectify this?
Please help me ...I am using magento 1.9.0.1
First of all you need to check which package you are using for you theme, you can check if media.phtml is being called from rwd folder.
i.e. /app/design/frontend/rwd/default/template/catalog/product/view
Or you can enable path hints and locate the phtml files, and accordingly that you can put the design files of custom module there.
To turn on template path hints in Magento:
log into the magento back-end admin.
Go to System -> Configuration in the main menu.
Go to Developer on the bottom left under ADVANCED.
Switch to the store view on the top left to your current website or store
view.
or check the below link.
https://support.sweettoothrewards.com/entries/21255937-How-do-I-turn-on-template-path-hints-

Magento product zoom extension not working in my custom theme

I am using a custom theme in magento. Now I install a pluging for product zoom functionality. But the plugin is not working. Finally I found that the while installing the plugin, the files are saved in default theme directory, but I am using a custom theme(themeheros).
To make the plugin working I cut and paste the
app/design/frontend/default/default/layout/[extension_name].xml
app/design/frontend/default/default/template/[extension_name]/*
files to
app/design/frontend/[your_interface]/[your_theme]/layout/[extension_name].xml
app/design/frontend/[your_interface]/[your_theme]/template/[extension_name]/*
But no luck. The plugin is still not working.
For product zoom I use number of plugins but no one was worked in custom theme.
But in my local machine these plugins are working because there I am using the default theme.
How can I make the plugin working in Custom theme in Magento. My magento version is 1.9.0.1.
Which javascript library does this module use? jQuery? Prototype? If
jQuery check existing noConflict() method.
Try to put layout and
template files in base/default directory.
In most situations any javascript lib doesn't work because of custom theme. For example in default magento image wrapper block is <div class="product-image"> and any module try to select this block $('.product-image'). But in your custom theme this block can have another class and module initialization will not work. So I recommend to switch to default theme.
Open on your product view page view:source code and find how much time jQuery (if it module use jQuery) attached
According your comment check if current handle use on this page. Anyway upload here your layout xml in your first post.

Themeforest theme integration with Yii framework

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.

How do you get the url of wordpress plugin from template?

I am working for a client right now that is wanting me to author a wordpress plugin for them, and on top of that they want me to integrate it into their template as a feature. However since the url of the location of the plugin could change I want to be able to call the loaded plugin from the template, however I am not finding any good way to do so. I have read over WordPress Codex and not found a function that suits what I need, or I simply don't understand what they are doing. I am not familiar with how WordPress loads and uses plugins. Thanks!
Here's the WP overview on plugins.
In short, plugins are managed by the WP install and once activated automatically load when the pages are called. Plugin files are stored in: wp-content/plugins/ and are stored within each individual WP installation. As long as your client doesn't mess with the wp-content directory structure, your plugin should load if activated in the WP admin console (and it's functional/doesn't break). This is the only way to run plugins through WP as of now (though I don't see this changing).
Wordpress has a built in function to find the path to your plugin, similar to this:
$pluginpath = plugin_dir_url(your_plugin.php);
I believe that is what you are asking, no? Or are you referring to sending a function from the plugin to the template? In that case, you have to use an action hook. Here is the reference: Link

Categories