Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #1208834

    Hi!
    I cannot get the option to Redirect Attachment URLs to the attachment itself in Enfold. I mean images uploaded unique URL should be shown as:
    domain.com/image-example.jpg but also Attachment URLs are created as domain.com/image-example/
    Many thanks!
    David

    • This topic was modified 3 years, 11 months ago by seomar.
    #1209056

    Hey seomar,

    I’m not sure I understand your question, could you try to explain a bit further please? There are no automatic redirects by default in the theme.

    Best regards,
    Rikard

    #1209115

    Hi Rikard,
    If I uploaded an image “image-example-media.jpg” the unique should be URL but in this case an automatic & empty
    permanent link URL for the image is generated like:
    image-example-media/

    For quality content SEO-related purposes and duplicated URL should be online just the image and not the automatic URL image generated.

    Question:
    Is there a way just to show the images as image-example-media.jpg and not the associated permanent link URL images?
    Many thanks
    David

    #1210417

    Hi David,

    Please have a look at this article:

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1210437

    Many thanks Victoria, you guys are so kind.

    Where is the image.php file which rules de attachment logic withing Enfold template? can’t find it.
    Thanks again
    Dave

    #1211115

    Hi Dave,

    Enfold does not have the image.php file but you can create it in the child theme and add that line of code there.

    Best regards,
    Victoria

    #1211119

    Hi Victoria,
    Thanks!!
    Will it work, creating in the child theme a file called image.php which doesn’t exist in the parent theme?
    Is there other way to add that code line to functions.php or a similar way?
    Many thanks again!
    David

    #1211438

    Hi David,

    Well, you can have a look at the solutions here too:

    https://wordpress.stackexchange.com/a/271089

    Best regards,
    Victoria

    #1211490

    Victoria,
    Thanks,
    Done :)

    #1211593

    Hi,

    Great, I’m glad that Victoria could help you out. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.