Getting started with Redux in WordPress - wordpress

I apologize if this has been asked before, but after doing some research, I could not find any resources answering this specific question of mine.
I'm trying to use the Redux framework in my WordPress theme. I used the builder to get started, which is linked to on the plugin page. I customized my framework there and chose the option of "embed only" (Embed Only: TGM is not used and Redux is embedded within the theme/plugin). I also exported as a custom theme, which uses Underscores. As a result, I now have admin directory inside of my theme, with an "options-init.php" file in it. I've been modifying this file to add my options. Is this right? In the documentation it mentions to look for a sample-config.php file, and to copy that and modify it, but I can't find that anywhere. I want to make sure I'm doing this right before I get too far and find an issue.
Also, how do I make sure the framework stays up to date with the latest security patches? Is it a better idea to install it as a plugin rather than embed it in the theme itself?

Lead dev of Redux Framework here. It is very much a better idea to run Redux via a plugin if you want your users to have security updates.
Another option is to embed redux, but to use TGM to suggest for users to install the plugin. This way your theme is not dependent on Redux, but the moment they install the plugin, that version of Redux will take over.
It's up to you, but the plugin is the way to go.

Related

I need a WordPress plugin that can create an IDE for codes to run on my website

I have a WordPress site, and I teach python on it and I want to share some code on it. I want a code editor that users can see my code and run it.
Please if you know any plugin that can do this help me.
I really do not think that there is such kind of a plugin available as of now. However, you can always search for such a plugin inside the official WordPress plugin repository.
Still, my recommendation would be to consider building your custom website ( not based on WordPress at all ) in order to achieve that using a different application or framework that has already developed a tool for that purpose.

Error using custom design option visual composer with applay theme

When purchasing the Applay Application theme for wordpress it is recommended to install Visual Composer.
It looks simple enough attempting to create custom CSS, however any attempts to save the use design options
Gives an error:
Design options could not be saved. Error: error evaluating function darken:a.toHSL not a function.
Which essentially means there is an element that cannot have no color value, that is attempted to being darkened.
I searched the theme, thinking I'd done something creating a child theme, reverted it back to the parent theme and could not solve it.
Both reports of this on the support page were:
Hi, we haven’t received such complains before – please open support ticket at support.wpbakery.com and share your site credentials so our support team can help you out.
It turns out the error is due to the apptheme's author's own inbuilt theme customisation and a lack of compatibility with Visual Composer.
I received this email repsonse from the support for Visual Composer.
The issue is because there is an inbuilt version of Visual Composer (or the related code) present in your theme which is overriding the standalone plugin version and hence causing the issue. You will have to get rid of it. I would advise you to do so with the help of theme author, otherwise you might loose the extra elements added by him. Once this is done, you can install the standalone plugin and it will work fine. Kindly check.
The theme author is the one who built the theme. In your case he is: http://themeforest.net/user/leafcolor
I decided to post this, as it may help others searching for this.

WordPress: Plugin Development overriding guide

I have been developing plugins for WordPress. Most plugin I have developed with two three classes and not so huge like Buddypress, WooCommerce or etc.
I am planning to make two open source plugins to deliver some sort of complex system (detail can't share you at the moment but later during the development) where other developers can customize functions and system for them need same as Buddypress and WooCommerce.
As I check those plugins files and realize they have register them own action and filters which developers can modify as per them need. But my problem is unable to understand completely how I should write the plugin where other developer have flexibility to override plugin function as well as they can add them own.
I know it is difficult to give definite answer but I need some sort of start-up guide so I can go into right direction. Do I need to register my action and filters? If yes how to do? if not than how can I do?
Your hint will help me a lot... Thanks a lot
You can check WordPress-Plugin-Boilerplate, it should get you started on the right path.
It may be useful to use wp-cli for generate plugin like so:
wp scaffold plugin my-plugin
Or using "WordPress Plugin Boilerplate" for more complex works: https://wpbp.github.io/wiki.html

How to add custom functionality to WordPress

I am developing a website on the WordPress platform and this is my first time using WordPress.
WordPress offers an estimate of 20% of the entire project scope, this means I have to write code for the remaining 80%
My question is how do I extend the WordPress platform to provide the functionality I require?
Thanks for your responses in advance
Pls remember am a newbie! will appreciate clear and detailed responses
Thanks
It really depends on what you're attempting to achieve, but a good first port of call would be to immerse yourself the details in plug-ins (specifically the "Writing a Plugin" section) and the Plugin API, as this is the easiest way to extend WordPress using the wide variety of hooks that the API provides.
However, it's also quite likely that at least some of the functionality you require has already be created as a 3rd party plug-in, so I thorough check of the currently available plug-ins would most likely pay dividends.
Wordpress has support for plug-ins. Additionally, it's all PHP scripts, so you can modify the core system as needed; however I would highly recommend that you only use plug-ins to extend functionality, as by changing the core system you won't be able to apply security updates.
For more information on plug-ins, read the Wordpress codex, which also contains detailed documentation on all functions available.
In addition to Plugins, which other users have already mentioned as a way to extend Wordpress functionality, you should read about the concept of Child Themes.
Themes in general make up the appearance and some functionality of your Wordpress site. For making your own theme, which you will be doing, it is a good idea to start off with an existing theme and build upon it. The standard Wordpress theme Twentyten is a great starting point, where many issues have already been taken care of.
The changes you add can be pure CSS restyling or much more complex additions.

Drupal: xmlsitemap file is not generated

I have chosen XMLSiteMap module from the most popular usage statistics on Drupal site,
so I assume the module is not too buggy. But the map file is absent.
I've installed this module on my Windows machine into drupal/sites/default/modules.
I've activated all the submodules of XMLSiteMap in admin menu.
Per docs, I've also run cron.php manually to create sitemap.xml in drupal/sites/default/files - but it's just not present there even when second re-install.
How can I force to create sitemap.xml?
(also tried with and w/o clean URLs - still no help).
Also, if there any good reliable alternative for this module?
Are you sure you've installed it properly? Please check the Status report (admin/logs/status in Drupal 5, admin/reports/status in Drupal 6) to ensure that you've got everything right.
It's possible that you haven't set the permissions of sites/default/files properly yet for example.
I'm not sure if this will help you, but if you are looking for an actual created sitemap.xml file rather than navigating to it in the browser I don't believe one is created by the module. I think the module creates a menu callback to create the sitemap file, so a request for sitemap.xml is handled by Drupal's menu system, rather than creating an actual file. There will however be a cached version in sites/default/files/xmlsitemap.
Apologies if this is an oversimplification of the question asked.
I have not had any problems with the reliability of the module myself.
Also make sure you have the latest version installed, it just came out yesterday:
http://drupal.org/project/xmlsitemap
Also, see this issue, seems related to your problem:
http://drupal.org/node/458546
I'd probably recommend trying the 6.x-2.x branch which I've been rewriting to kind of solve all the annoying bugs and architectural problems of the 6.x-1.x branch. It's currently incomplete, but it works for nodes and menu items currently. Taxonomy terms and user profiles will be added soon.
You can find the link to it on the project page. Sorry I can't link since I'm a new user. :)
Running the CRON worked for me:
/admin/reports/status/run-cron

Resources