[resolved] "Crop Thumbnails" link gone missing. (5 posts)

  1. Crest Web Services
    Posted 2 years ago #

    Had your plugin working great on castrotalent(dot)com a few weeks ago.
    Not sure what made the link disappear. There are no errors being thrown on the site and I don't have any new plugins or anything new installed other than updating WordPress to the latest version.

    Uninstalled and re-installed/activated the plugin. Still no link.
    I even tried it by itself on a testing site I have up which is running plain wordpress with nothing installed.
    Still have no link on the edit pages to crop thumbnails.

    Could be a server issue?
    Is this a problem for anyone else?


  2. Volkmar Kantor
    Plugin Author

    Posted 2 years ago #

    this should be a javascript error. As far as i remember all "crop thumbnail" links are rendered via javascript. There 3 places where the link/button is rendered:
    * beside the "add media button" in the edit-view
    * in the "post thumbnail" box in the edit-view
    * in the listing of media files under "media"

    If it's not a javascript error (you may have a look on the development console of firefox or chrome) you may check if the thumbnail feature is available for your theme.

    So, did you got any javascript errors?

  3. Volkmar Kantor
    Plugin Author

    Posted 2 years ago #

    The Javascript-Code for this is rendered in the "functions/editor.php" in function "cptAddLinksToAdmin", arround line 500.

  4. zandercent
    Posted 2 years ago #

    is there any way to get it into the "edit image" view too - we have a custom field setup that enables people to select images using ACF.

    The media section, featured images and add media buttons aren't used at all


  5. Volkmar Kantor
    Plugin Author

    Posted 2 years ago #

    Hi zandercent,
    i recommend to add the links via javascript. The plugin itself do it the same way (you may have a look at "crop-thumbnails/functions/editor.php" starting from line 498).

    What you need:

    • a activated thickbox (you may need to enqueue thickbox on the edit-image-page)
    • the id of the image

    <a class="thickbox" href="[ADMIN-PATH]/admin-ajax.php?action=croppostthumb_ajax&image_id=[IMAGE-ID]&viewmode=single&TB_iframe=1&width=800&height=855" title="Crop Thumbnail">Crop Thumbnail</a>

    Add the link to any point of the page. Once you clicked the link, the image should be opened.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic