URL under Icon Box - open in new tab

Home Forums Jevelin Theme URL under Icon Box – open in new tab

Home Forums Jevelin Theme URL under Icon Box – open in new tab

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    RESOLVED Posts
  • Marcin Gora
    Participant

    Hi Team,

     

    I’m wondering if there is an option to add URL under Icon Box that will open content in new tab in browser?

    Standard <a target=”_blank” href=” actually is now working.

     

    Thanks,

    Marcin

    Attachments:
    You must be logged in to view attached files.

    Solution for this topic

    Hi Marcin,

     

    I hope you are well today and thank you for your question.

     

    You can achieve this by adding following custom code in the functions.php file of your child theme.

     

    function add_custom_scripts_icon_box(){ ?>
    	<script type="text/javascript">
    		jQuery(document).ready(function( $ ){
    			$( '.sh-iconbox-title a' ).attr( 'target', '_blank' );
    		});
    	</script>
    <?php }
    add_action('wp_footer', 'add_custom_scripts_icon_box', 99 );

     

    Best regards,
    Shufflehound team

    Marcin Gora
    Participant

    Hi Team,

     

    One question for this solution. I will get an option to choose whether to paste link that will open in same window and another option to open link in new tab?
    I have few icon boxes that I still want url’s to open in same window.

     

    Thanks,
    Marcin

    Marcin Gora
    Participant

    If that will give me an option to open links (in same tab or open in new) would it be possible if you could mark a place where exactly I should place mentioned code in functions.php file? [attaching this file]
    Many thanks!

    Marcin Gora
    Participant

    in zip file

    Attachments:
    You must be logged in to view attached files.

    One question for this solution. I will get an option to choose whether to paste link that will open in same window and another option to open link in new tab?

    No it won’t prove any such option.

    You can add the code in the end of shared functions.php file just after following code.

     

    add_filter( 'facetwp_template_force_load', '__return_true' );

    Marcin Gora
    Participant

    Thanks for your help.

    You are most welcome here 🙂

Viewing 8 posts - 1 through 8 (of 8 total)

Popular choice

Professional Developers At Your Fingertips!

If you need services beyond standard support, we've got your back!

Services we offer:

Demo setup
Advanced customization
Layout adjustment
Graphic work / visualizations
Custom coding
Full WordPress development and design

Services

What we can offer

  • Demo setup +

    If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.

  • Layout adjustment +

    We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.

  • Advanced customization +

    More complex styling changes, theme option modifications, and third-party integrations.

  • Custom coding +

    If you need something that's not included in the theme, we can code it for you.

  • Graphic work / visualizations +

    Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.

  • Full WordPress development and design +

    Full website builds, custom theme development, or plugin creation from scratch.

  • About pricing +

    We'll provide a clear quote based on what you need. No hidden fees.

Professional Developers At Your Fingertips!

Custom Work Form