Re-naming a theme/child theme whilst maintaining updates

You should not store an exact copy of the Divi theme in your child theme, there is little point to that. Your child theme stylesheet will reference the parent theme directory name in the template attribute within the header of your stylesheet: /* Theme Name: Your Child Template: divi //shortened for brevity… */ The parent … Read more

What is the correct way to update both WP/plugins/themes without breaking the site?

This is the reason I always recommend to use the least amount of plugins. This obviously easier to say then do, but if you are a developer you should strive to eliminate all plugins by incorporating the relevant code into a site specific plugin or theme. Integrators obviously have less ability to achieve this. The … Read more

How to append to title via functions.php for auto-posting plugin [duplicate]

Whoa, this Plugin was a nightmare to look through. But I got a solution for you. In the description for your links, you can use the placeholder %FULLTITLE% instead of %TITLE%. %FULLTITLE% applies the filters for the title. From nxs_functions_adv.php Lines 19 & 20: if (preg_match(‘/%TITLE%/’, $msg)) { $title = nxs_doQTrans($post->post_title, $lng); $msg = str_ireplace(“%TITLE%”, … Read more

How to periodically scrape and cache strings from remote txt files. – My First Plugin

The Transient API may help you here. A transient is variable stored for a defined amount of time. function filemtime_remote( $url ) { $list = file_get_contents( $url , null , null , 0 , 200); $important = explode(“Last modified: “,$list)[1]; $mydate = substr($important, 0, 21); return $mydate; } The above is your current code which … Read more

Woocommerce – How to populate custom select field with stored values on checkout page?

I just had a similar problem and solved it with a combination of PHP and jQuery. If $stored_value is what you have pulled from the DB and #billing_postcode is the id of the select-tag: <?php if ( !empty( $stored_value ) ) { ?> <script type=”text/javascript”> jQuery(document).ready(function($) { $(“select#billing_postcode”).val( “<?php echo $stored_value; ?>” ); }); </script> … Read more

Modify the file inside plugin dir – the right way

It is not possible to override a file (not technically 100% true, but you don’t want to go the way that will make it possible), and in any case, if it was possible the long term effect would be similar to the one you are trying to avoid – when upgrding the plugin, the upgrade … Read more

WooCommerce Custom Product to checkout

You need first to buy WooCommerce Quick View plugin, because woocommerce lightbox plugin doesn’t work without it. Please read this: Woocommerce single product show in modal…? And if you go to the wordpress page of woocommerce lightbox plugin, you will see that is a complementary plugin.