Codeless
  • Support Home
  • Themes
  • Support
  • WordPress Tutorials
    • How to Start a Blog
    • Best Website Builders
    • Best Small Business Hosting
    • Email Marketing Services
    • Cheap WordPress Hosting
  • Video Tutorials

Community Forums

linking out on images

linking opening new window
    • 6 years, 5 months ago studio2880
      Participant

      Expired

      HI there,

      How do I use    ‘target=_blank ‘     on our image?. Or, how do I link an image to open a new window please?

      Home

    • 6 years, 5 months ago Ruco
      Keymaster

      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!

    • 6 years, 5 months ago studio2880
      Participant

      Expired

      This reply has been marked as private.
    • 6 years, 5 months ago Mirela
      Participant

      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!

    • 6 years, 5 months ago studio2880
      Participant

      Expired

      This reply has been marked as private.
    • 6 years, 5 months ago Ruco
      Keymaster

      Hello,

      Please can you check the changes now.

      Let us know.

      Regards!

    • 6 years, 5 months ago studio2880
      Participant

      Expired

      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.

       

    • 6 years, 5 months ago studio2880
      Participant

      Expired

      This reply has been marked as private.
    • 6 years, 5 months ago Mirela
      Participant

      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!

    • 6 years, 5 months ago studio2880
      Participant

      Expired

      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.

    • 6 years, 5 months ago Mirela
      Participant

      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!

Viewing 10 reply threads

You must be logged in to reply to this topic.

Login

Log In
Register

Renew Support

  • Renew Specular Support
  • Renew Tower Support
  • Renew Folie Support
  • Renew Handel Support
  • Renew June Support
  • Renew Picante Support
  • Renew Thype Support
  • Renew Regn Support

Search Forums

Forums

  • Bygge – Construction Theme
  • Converta – Software Theme
  • Folie – The WordPress Website Builder
  • Handel – Responsive Multi-Purpose Business Theme
  • June WooCommerce WordPress Theme
  • Livecast – Podcast Theme
  • Picante – Restaurant & Food WordPress Theme
  • Regn | Agency & Business WordPress Theme
  • Remake – Minimal Portfolio & Agency Theme
  • Specular – Multi-Purpose WordPress Theme
  • Suggest us Features
  • Tower – Business-Driven Multipurpose WP Theme
  • Vibrance – Photography Theme

Site Links

  • Support Policy
  • Specular Support Forum
  • Video Tutorials
  • Knowledge Base
  • Guides and Reviews

Useful Articles

  • Build a Website
  • Web Design & Development
  • Hosting
  • WordPress

Login

Log In
Register Lost Password