• Resolved girdy74

    (@girdy74)


    I’m having some issues with the button link not working. If I change it from window.location.href to location.href it works.

    Thoughts?

    thank you!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter girdy74

    (@girdy74)

    I tried changing this within the core files of the plugin (just to test) but that didn’t work either.

    Thread Starter girdy74

    (@girdy74)

    I know this isn’t what should be done but this is what I did to get the button to link to the URL provided.
    File: image-widget-deluxe.php
    Line 227 //Button.

    // Button.
    			if ( $field == $widget_id . '-button' && ! empty( $url ) && ! empty( $button ) || $field === 'no-sort' && ! empty( $url ) && ! empty( $button ) ) :
    
    				if ( empty($url_target) ) {
    					$link = $url;
    					$target = "_self";
    				} else {
    					$link = $url;
    					$target = "_blank";
    				}
    
    				echo '<p class="rommeled_widget_image-field rommeled_widget_image-button"><a target="'. $target .'" href="'. $link .'"><button class="button btn">' . $button . '</button></p>';
    
    			endif;
    		}
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Button not linking’ is closed to new replies.