WordPress.org

Ready to get started?Download WordPress

Forums

Custom Post Widget
[resolved] "Add Content Block" button icon missing (3 posts)

  1. GermanKiwi
    Member
    Posted 1 year ago #

    Hi Johan,

    I have a 404 error logfile (from another plugin) which shows all the 404 errors on my website. I noticed that it is getting a lot of hits for this:

    /wp-content/plugins/custom-post-widget/images/contentblock.png

    I also noticed that the button icon is missing from the "Add Content Block" button in my Visual Editor. The button only has the text and no icon.

    And don't worry, I already know the reason for this error! :) It's because I have renamed my wp-content folder to something else, by using the define('WP_CONTENT_URL') setting in my config.php file.

    The icon is missing because you have hard-coded the name of the wp-folder in the post-widget.php file of your plugin - on line 213 and 217. Therefore the button can't load, and gives a 404 error every time.

    Can you kindly fix this please, by removing the hard-coding of this folder path and using whatever WordPress variable exists for the wp-content folder? (I don't know what the correct variable is, but I know that it is possible to take the correct path based on what is set by the WP_CONTENT_URL in my config.php tile).

    Thanks!

    http://wordpress.org/plugins/custom-post-widget/

  2. Johan van der Wijk
    Member
    Plugin Author

    Posted 1 year ago #

    Hi GermanKiwi,

    This should now be fixed. You can now download version 2.3.2 to test this:

    http://downloads.wordpress.org/plugin/custom-post-widget.2.3.2.zip

    Please let me know if this works so I can release this change.

  3. GermanKiwi
    Member
    Posted 1 year ago #

    Yup, that seems to have worked - I've got the icon showing up now in the Visual Editor, as part of the button! Thanks for the fix!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.