WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. pn1wp2
    Member
    Posted 1 year 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.

    http://wordpress.org/extend/plugins/candy-social-widget/

  2. AJClarke
    Member
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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
    Member
    Posted 1 year ago #

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

  5. BillRodgers
    Member
    Posted 1 year 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:

    candy-social-widget/includes/widget-functions.php

    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.

    Regards,
    Bill

  6. AJClarke
    Member
    Plugin Author

    Posted 1 year 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.

    -AJ

  7. WP Sites - Brad Dalton
    Member
    Posted 1 year 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

About this Topic

Tags

No tags yet.