Tag Info

Hot answers tagged

2

Your code should look like this function my_scripts_styles() { wp_register_script('easing', get_template_directory_uri() . '/js/easing.js', '2014-12-030', true ); wp_enqueue_script('easing'); } add_action( 'wp_enqueue_scripts', 'my_scripts_styles' ); The above code should work fine. Also don't forget to check if you have properly specified the ...


2

I took the following from the rtl.css and applied them via Magic Widget with additional !important keywords to an English site: body:before { right: 0 !important; left: auto !important; } .sidebar { float: right !important; margin-right: auto !important; margin-left: -100% !important; } .site-content { float: right !important; ...


2

The list you are referring to was done start to mid 2013, which can be a bit outdated as the was major improvements/new feutures like The TINYMCE editor undergone major modifications and upgrades as from version 3.9 Version 4 saw the introduction of new shortcodes like the video shortcode and audio playlist, just to name a few In the back end plenty of new ...


2

The thing about WordPress, while it doesn't have a neat routing system in principle it does same operation. It takes the URL input and matches it to a set of query variables. The not–neat thing about it is that it uses regular expressions for these not–quite–routes and a lot of them. The total number of rules fluctuates from about a hundred minimum to ...


1

Combining wordpress with other frameworks will make it very easy for you to shot yourself in the foot. If all what your clients want is an editor then you can just use tinymce without dragging the whole of wordpress into it, but if they are after the workflow and flexibility then it will be pointless to try to make wordpress something that it isn't. you are ...


1

Adding a reference to updated @EAMann's answer: I've asked similar question to license@fsf.org. My exact question was: Could you please clarify what does it mean to release source code under "GPLv2 (or later)" and if so, if it allows to release derivate works under aGPL v3. And the answer that came: By licensing their work under GPLv2 (or later), ...


1

You are using after_theme_switch action but the correct name is after_switch_theme. Also, you won't see the echo statements on after_theme_switch and switch_theme. To debug things in that hooks you can use, for example, error_log() function and look for messages in PHP error log file (you need to have errors "On" and/or WP_DEBUG enabled). I've tested this ...


1

Edit the according template file out of the Template Hierarchy, so in your case the template regarding the Category Display.



Only top voted, non community-wiki answers of a minimum length are eligible