Support » Plugin: WordPress Gallery Plugin - NextGEN Gallery » Can we change the title of the thumbs it generates?

  • Resolved simon_a6


    We have a problem whereby our SEO tool says that the filenames generated by this plugin have _ rather than -. hyphens are SEO preferred.

    How easy is it to change the added “thumbs_” filename to the plugin please?


Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Benjamin


    Hi @simon_a6

    It’s not currently easily done; you’ll need to:
    1. First delete all of your existing images; this will break displaying existing images.
    2. Edit nextgen-gallery/products/photocrati_nextgen/modules/package.module.nextgen_data.php and change line 2120 from this:

    $image_path = path_join($image_path, "{$prefix}_{$image->filename}");

    To this:

    $image_path = path_join($image_path, "{$prefix}-{$image->filename}");

    3. Upload your images again.

    I’ve tested this a little and it doesn’t seem to break anything as long you don’t have any preexisting images, but I can’t make any guarantees.

    Since it appears that this may actually affect SEO performance I will be adding this as an option to a future NextGEN release. We will likely be releasing 3.18 next week which will not include this, but 3.19 will.

    Thread Starter simon_a6


    Thanks. I’ll wait til you have made the change.
    Pity you cannot make the change live for next week, but I suspect there are processes you have to go through.

    But appreciate the understanding of the reasoning.

    Thread Starter simon_a6


    There is no php file under ‘Modules’, only further folders.


    Plugin Author Benjamin


    My mistake, I meant to write:


Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Can we change the title of the thumbs it generates?’ is closed to new replies.