WordPress.org

Ready to get started?Download WordPress

Forums

Artiss Social Bookmarks
[resolved] Icon image path breaks in multisite (7 posts)

  1. flojnel
    Member
    Posted 1 year ago #

    I have the plugin installed in a multisite version of WordPress. Moving the custom icons to the content folder doesn't work because the path is different for each subsite. Can you tell me how to change the icon path in the plugin?

    http://wordpress.org/extend/plugins/simple-social-bookmarks/

  2. dartiss
    Member
    Plugin Author

    Posted 1 year ago #

    To change this navigate to the includes folder within the plugin directory. Open up the file asb-generate-bookmarks.php and find the following line...

    icon_folder = content_url() . '/' . $icon_folder . '/';

    You can now change this to whatever folder you think is more appropriate.

    I'll look into the problem for the next release.

    David.

  3. flojnel
    Member
    Posted 1 year ago #

    I'm not sure I understand what the code does here since it looks like the first line defines $icon_folder in a way that wouldn't work for me:
    if ( $icon_folder == '' ) {
    $icon_folder = $plugin_folder . 'images/';
    } else {
    $icon_folder = content_url() . '/' . $icon_folder . '/';
    }
    I've been storing the icons in a folder called "icons" within my theme folder. How would I write it for that?

    And thanks for your quick reply!

  4. flojnel
    Member
    Posted 1 year ago #

    Figured it out - thanks.

  5. flojnel
    Member
    Posted 1 year ago #

    Ouch - spoke too soon. My code worked on the development site - exact copy of the live site, but not on the live site.
    I did this:
    if ( $target != '' ) { $target = ' target="' . $target . '"'; }
    if ( $icon_folder == '' ) {
    $icon_folder = content_url() . '/themes/rainbow/icons/';
    } else {
    $icon_folder = content_url() . '/themes/rainbow/icons/';
    }

    Not sure if it was the best way to do it, but worked on the development site. Have caching turned off on the live site at the moment and there isn't any cache to clear. Any idea what the issue could be.

    It's still looking for icons in the content folder.

  6. dartiss
    Member
    Plugin Author

    Posted 1 year ago #

    It shouldn't be - this would suggest your changes aren't live on the site. If you've made the above changes it will be looking in wp-content/themes/rainbow/icons.

    David.

  7. flojnel
    Member
    Posted 1 year ago #

    Hi David,

    I tried turning off the plugin and turning it back on and that worked. Don't know why I didn't think of it before.

    Thanks for your help!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic