• In my WordPress setup, I use custom wp-content folder. So, when I add custom images, the path to the new wp-content folder does not work.

    Most probably it is line 60 of the widget.php file containing the following code:

    $siw_icon = site_url().’/wp-content/themes’.$siw_path[1];

    You probably should reference wp-content via functions.

    https://wordpress.org/plugins/social-media-icons-widget/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Daniel

    (@dannisbet)

    Good catch. I’ll work on getting that fixed in the next update.

    I was just about to suggest replacing site_url() with home_url() as that would have fixed the problem I’m having with using WordPress as a Composer dependency in a subfolder. But greeso’s suggestion of getting wp-content with a function like content_url() make more sensse.

    @greeso – As a temporary fix until the next update to this plugin, I added a custom rewrite rule to my .htaccess so that (in my case) /wp/wp-content/ requests were forwarded to the right location.

    RewriteRule ^wp/wp-content/(.*)$ /wp-content/$1 [R=301,NC,L]

    Adjust as needed.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom images do not work when using custom wp-contents folder’ is closed to new replies.