-
-
HI there,
How do I use ‘target=_blank ‘ on our image?. Or, how do I link an image to open a new window please?
-
Hello,
There is no option for that in the moment. We are going to launch an update soon with this feature added.
For the moment you can resolve that by editing the following file: themes\folie\includes\codeless_builder\shortcodes\cl_media.php find this line 75-77:
<?php if( $custom_link != '#' && ! empty( $custom_link ) ): ?> <a href="<?php echo esc_url( $custom_link ) ?>" class="custom-link"></a> <?php endif; ?>
and replace with:
<?php if( $custom_link != '#' && ! empty( $custom_link ) ): ?> <a target="_blank" href="<?php echo esc_url( $custom_link ) ?>" class="custom-link"></a> <?php endif; ?>
Let us know.
Regards!
-
-
Hello,
Yes, we can do this for you but we need to be able to access the files. For this the Appearance > Editor must be accessible. Right now i can not see it. See screenshot: https://ibb.co/qmXwXzb
Best regards!
-
-
Hello,
Please can you check the changes now.
Let us know.
Regards!
-
Okay, thank you…. That did work.
BUT, what if we only want some of the site’s images to link to another window though? Is there no way for us to control this?
This now links ALL out images to new windows…. this is not exactly what I need. There are some images on the site that need to link within the site.
If there is no way to control this, we will have to leave it as is but I would hope there is a way to do this in the very near future as this compromises our site design.
Please advise.
-
-
Hello,
Sorry but this is a customization that affect all images in the site. If you do not want it, then reverse the changes. Basically, find the code above and just remove this code:
target="_blank"
Best regards!
-
Okay, this seems very strange from a developers point of view….
Do you perhaps have any plans on updating this feature in a future release?
With that being said,
Is there any way to link out to open a new window for text links? Or is this the same rule? Link one, link all?
Thanks.
-
Hello,
If there is one php file responsible for the image or text, then yes. The changes will affect all site. The same goes for the text links.
In order to have the option to open in new tab only some text or some images, then a new option must be added. I will notify the developers for your suggestion, but i can not assure you right now that it will be included in future theme updates.If you think this is important feature or if you have other suggestions, please let us know by writing them here: https://support.codeless.co/?forum=suggest-us-features
Best regards!
-
You must be logged in to reply to this topic.