Tagged: attachment, enfold, Images, wordpress
-
AuthorPosts
-
May 1, 2020 at 2:10 pm #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 4 years, 7 months ago by seomar.
May 2, 2020 at 7:40 am #1209056Hey 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,
RikardMay 2, 2020 at 5:28 pm #1209115Hi 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
DavidMay 6, 2020 at 6:48 pm #1210417Hi David,
Please have a look at this article:
If you need further assistance please let us know.
Best regards,
VictoriaMay 6, 2020 at 7:21 pm #1210437Many 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
DaveMay 8, 2020 at 6:17 pm #1211115Hi 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,
VictoriaMay 8, 2020 at 6:24 pm #1211119Hi 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!
DavidMay 9, 2020 at 5:24 pm #1211438Hi David,
Well, you can have a look at the solutions here too:
https://wordpress.stackexchange.com/a/271089
Best regards,
VictoriaMay 9, 2020 at 8:12 pm #1211490Victoria,
Thanks,
Done :)May 10, 2020 at 7:00 am #1211593 -
AuthorPosts
- You must be logged in to reply to this topic.