Can you put a condition on add_image_size() depending on the width of the uploaded image?
Can you put a condition on add_image_size() depending on the width of the uploaded image?
Can you put a condition on add_image_size() depending on the width of the uploaded image?
Removing “wpautop” (auto tags) only on certain pages?
esc_html_e() is not translating string in wordpress [closed]
Looks like you may need to use a custom hook unique to Elementor Pro: https://code.elementor.com/php-hooks/#elementorfrontendbefore_enqueue_scripts The below example is un-tested but modified for your use case. // Note: I think all you need is to dequeue the style to remove from the page add_action( ‘elementor/frontend/after_enqueue_styles’, function() { if ( is_front_page() && !is_user_logged_in() ) { wp_dequeue_style( … Read more
I put cors header on functions.php, allow cors on API, ensure https on both sides and allow cors on digital ocean – that hosts both wordpress and API
Looks like you can get the buttons text from something like: add_filter( ‘gform_submit_button’, ‘form_submit_button’, 10, 2 ); function form_submit_button( $button, $form ) { return “<button class=”submit-button” id=’gform_submit_button_{$form[‘id’]}’><span><i class=”far fa-envelope”></i>”.$form[‘button’][‘text’].”</span></button>”; } Found here: https://docs.gravityforms.com/form-object/#advanced-properties You may need to confirm the key is text and not something else. Hope this helps.
You need to simply pass your current page with your ajax request. Put this property on your “body” tag to be able to get this with JS in the future. <body page-id=”<?php get_the_ID(); ?>”> Find it in your JS var page_id = $(‘body’).attr(“page-id”) Pass it along with your other “data”: var data = { action … Read more
Filter out other users comments. Visualize only own comments and editor role users’ comments
Woocommerce related product text
Create a new query in function.php to filter blog posts