contacts

(+359) 88 339 4445

Buy All 40 Premium WordPress Themes for $54.99
No Additional Fees, Pay Once and Use Unlimited Time for Unlimited Domains

Open Clients Items in same browser tab

Open Clients Items in same browser tab

Most of our themes come with built-in widgets which allows you to add clients. You can display them into your website using the ‘Clients’ widget.

By default, when click on them, these links are opened in a new browser tab. In some cases you may want to they to be opened in same browser tab.

It will require a small code change. Here are all of the necessary steps:

1. Navigate to Admin Panel -> Left Menu -> Appearance -> Editor

2. Open yourtheme/inc/widgets/custom-posts-formats-widgets.php

3. Find and Replace the following code:

<a href=”<?php echo $data[‘link’]; ?>” title=”<?php the_title(); ?>” target=”_blank”>

with:

<a href=”<?php echo $data[‘link’]; ?>” title=”<?php the_title(); ?>”>

Just remove the target=”_blank” code.

4. Save Change

That’s all. Now the client items links will be opened into same browser tab when users clicks on clients thumbnail images.

Leave a Reply