Home>Support>Empty widget button after update.

Empty widget button after update.

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

There is a problem with the SiteOrigin Widgets Bundle buttons. It came after the updates on April 26-27. Next updates did not fix anything. The reinstallation did not help either.

All the global variables are empty ($button_attributes, $align, $icon, $href, etc.) in the widget instance.

This part of code in “/wp-content/plugins/so-widgets-bundle/widgets/button/tpl/default.php” helps to fix this issue until the next plugin update.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 8 years, 1 month ago Sergei

    Here is the code I wrote above (images are not displayed).

    $align = $instance['design']['align'];
    $href = $instance['url'];
    $text = $instance['text'];
    $icon_image_url = '';
    if( ! empty( $instance['button_icon']['icon'] ) ) {
    	$attachment = wp_get_attachment_image_src( $instance['button_icon']['icon'] );
    	if ( ! empty( $attachment ) ) {
    		$icon_image_url = $attachment[0];
    	}
    }
    $icon = $instance['button_icon']['icon_selected'];
    $icon_color = $instance['button_icon']['icon_color'];
    
Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More