Using shortcode content with nested shortcode

You don’t have to use do_shortcode inside your shortcode callback function. But if you don’t do this, then you won’t be able to nest shortcodes, so other shortcodes added on the site won’t work inside it. Let’s say your shortcode callback looks like this: function a_shortcode($atts = [], $content = null) { //use content here, … Read more

How to properly remove style for non logged in and front page only

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

Gravity Forms Button Text

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.