Override parent theme translation on child theme

I think I found a solution, but before a little Premise load_theme_textdomain() and load_child_theme_textdomain() are basically equal, the only difference is the default path they use: they get the current language (using get_locale()) and add the relative .mo file to the path passed as argument; then they call load_textdomain() passing as argument both the textdomain … Read more

What is theme-compat?

The theme-compat directory is comprised of a set of deprecated (since WordPress 3.0) files that WordPress used to use as fallback template-part files, in case the active Theme failed to include them. In other words, if a Theme used the get_header() template tag, but failed to include a header.php template-part file, WordPress would fall back … Read more

Installation failed: Download failed. No working transports found

The WordPress site was mostly working without a problem except in a dashboard section of the site, where it was having some issues with updating or installing. When I tried to install theme,it gave me error “Installation failed: Download failed. No working transports found”. Fortunately, i fixed the problem with following solution. It turns out, … Read more

How to check if a theme is active?

You can use wp_get_theme: <?php $theme = wp_get_theme(); // gets the current theme if ( ‘Twenty Twelve’ == $theme->name || ‘Twenty Twelve’ == $theme->parent_theme ) { // if you’re here Twenty Twelve is the active theme or is // the current theme’s parent theme } Or, you can simply check if a function in twentytwelve … Read more

How to Link External jQuery/Javascript files with WordPress

From the wording of your question, you must be adding scripts by writing <script> tags in your template. Add your own scripts via wp_enqueue_script() in your template’s functions.php, appropriately setting dependences on jQuery, and wp_head() will add the scripts for you. function my_scripts() { wp_enqueue_script( ‘my-sweet-script’, get_bloginfo(‘template_directory’) . ‘/script.js’, array(‘jquery’) ); } add_action(‘template_redirect’, ‘my_scripts’); See … Read more

How to move the sidebar in TwentyFifteen to the right?

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; margin-right: 29.4118% !important; margin-left: auto !important; } .site-footer … Read more

Where can I sell WordPress themes and plugins? [closed]

here is a nice brake down for you: MarketPlaces Themes: Theme Forest – Probably the biggest theme marketplace by Evanto. Rates: New authors begin at the 50%. Templamatic – Rates: between 50% and 70%. BuyStockDesign – Rates: Start from 50% to 75%. BuySellWordpress – Rates: Starts from 50% and may go up to 70%. WPmart … Read more

How do I exclude plugins from getting automatically updated?

Instead of using the code from the question in functions.php, replace it with this: /** * Prevent certain plugins from receiving automatic updates, and auto-update the rest. * * To auto-update certain plugins and exclude the rest, simply remove the “!” operator * from the function. * * Also, by using the ‘auto_update_theme’ or ‘auto_update_core’ … Read more