Candy Social Widget
Open links in new window or tab (7 posts)

  1. pn1wp2
    Posted 4 years ago #

    First of all, thanks for creating such simple and beautiful plugin. One big thing missing in canday widget is to open link in new window or tab. Is is possible to add some codes by myself in this version to make that happens?
    Many thanks!

    Please add that option on coming version.


  2. AJ Clarke (WPExplorer.com)
    Plugin Author

    Posted 4 years ago #

    I wanted to create something very minimal for those who wanted the same social icons I use on my site at http://www.wpexplorer.com.

    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.

  3. BillRodgers
    Posted 3 years ago #

    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>';


  4. alexplam
    Posted 3 years ago #

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

  5. BillRodgers
    Posted 3 years ago #

    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.


  6. AJ Clarke (WPExplorer.com)
    Plugin Author

    Posted 3 years ago #

    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.


  7. Brad Dalton
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Candy Social Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.