I have a question about the name of my blog [closed]

https://frufinurlig.wordpress.com/ shows the message that the name “is no longer available. The authors have deleted this site.” WordPress.com does not “recycle” their user name subdomains. You need to pick another account name when you sign up at https://wordpress.com/start/survey

is_plugin_active() not defined on active plugin, in the thumbnails.php file

You can try this, it works for me 🙂 // We need plugin.php! require_once( ABSPATH . ‘wp-admin/includes/plugin.php’ ); $plugins = get_plugins(); foreach ($plugins as $key => $value) { if ( $value[‘Name’] == ‘Aest Plugins’ ) { // <– name plugin validate if( is_plugin_active( $key ) ){ echo “plugin {$value[‘Name’]} is active”; }else{ echo “plugin {$value[‘Name’]} … Read more

How can I be a plugin developer? [closed]

I’ve also the started learning plugin development. and i found this playlist so much helpful. Here he shows how to develop e plugin very easily. complete this series, i think you’ll know where to go next! Best of luck!

Display Sale Price Before Regular Price (WooCommerce)

You have to change this in functions.php if (!function_exists(‘my_commonPriceHtml’)) { function my_commonPriceHtml($price_amt, $regular_price, $sale_price) { $html_price=”<p class=”price”>”; //if product is in sale if (($price_amt == $sale_price) && ($sale_price != 0)) { $html_price .= ‘<ins>’ . wc_price($sale_price) . ‘</ins>’; $html_price .= ‘&nbsp;&nbsp;<del>’ . wc_price($regular_price) . ‘</del>’; } //in sale but free else if (($price_amt == $sale_price) … Read more

Font size on image captions on mobile

Please Use font-size: 2.5vw; it is responsive and set according to size. .wp-caption .wp-caption-text { **font-size: 16px** !important; color: #000000; text-align: center; background-color: #F2F2F2; padding-top: 1px; margin: 1px; }

Levels of caching and impact on the WordPress web site

Adding custom variables(query strings) to static resources doesn’t affect caching at some of the levels you’ve listed above: WordPress plugin caching Webserver software caching PHP opcode caching MySQL caching WordPress query caching Several more etc. All of these don’t cache static resources(js, css and so on) but rather cache the output of application codes at … Read more

How to customize dynamic_sidebar rendering? [closed]

You may add before as well as after class to the sidebar when you define it into functions.php. <?php $args = array( ‘name’ => __( ‘Sidebar name’, ‘theme_text_domain’ ), ‘id’ => ‘unique-sidebar-id’, ‘description’ => ”, ‘class’ => ”, ‘before_widget’ => ‘<li id=”%1$s” class=”widget %2$s”>’, //You can change class/id here ‘after_widget’ => ‘</li>’, ‘before_title’ => ‘<h2 … Read more

If post has non-shortcode string

That’s indeed a basic PHP question. Use strpos(). Example: if ( false !== strpos( $post->post_content, ‘foo’ ) ) { wp_enqueue_script(); } Ps. I suggest you to not hook into wp_enqueue_scripts() but a later hooks, e.g. the_content and then load the JavaScript in the footer. This works best under all circumstances as wp_enqueue_scripts and wp_head are … Read more