Support » Plugin: Candy Social Widget » [Plugin: Candy Social Widget] Open links in new window or tab

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author AJ Clarke


    I wanted to create something very minimal for those who wanted the same social icons I use on my site at

    Thank you for the suggestions. I might consider, but at the moment I don’t intend on updating the plugin. You should be able to alter the output via the filters though.

    Hi AJ…

    How long would that take you? 30 seconds?

    foreach( $links as $s=>$link ) {
    			printf( $this->before_item, esc_attr( $s ) );
    			echo '<a href="' . $link . '" target="_blank" . title="' . $this-
    >services[$s] . '"><img src="'. plugins_url( '/images/'. strtolower ($this->services[$s]) 
    .'.png', __FILE__ ) .'" alt="' . $this->services[$s] . '" /></a>';


    Where do I paste this code? I tired putting it in different Candy editor files and I got fatal errors. Thanks!

    Go the the Plugin editor. Select Candy Social Widget from the drop down to choose the correct plugin to edit.

    Look for the file named:


    Look for the comment // display the widget in the theme

    My code looks identical except for the addition add “target=”_blank”

    Mostly I feel AJ should update the plugin. My comment that it would only take 30 seconds was addressed to him.


    Plugin Author AJ Clarke


    The thing is BillRodgers, I can update the plugin surely. But its better to not have them open in a new tab by default. You can easily hit control click or right click open in a new tab. However, if they go to a new tab by default you cant open in a new window.

    Ideally having an option to check for opening in a new tab or not would be ideal, this is an update I would consider doing, once I get some free time.


    Pinterest icon has white background. Can i change this to transparent?

    Also, how do i float the widget in my header to the right?

    wp sites

    Great plugin

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Candy Social Widget] Open links in new window or tab’ is closed to new replies.