Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • southsouthworld Friend
    #1056742

    Hi there,

    I was wondering is there an easy way to get K2 items to open in a new window after the user searches and clicks on the item?

    Kindest regards,
    Alyssa

    southsouthworld Friend
    #1056863

    I was only able to find the option to select open in a new window for a website URL extra field.

    Mo0nlight Moderator
    #1056953

    Hi.

    You could try this: Edit the file: /components/com_k2/templates/{default template you’re using}/category_item.php

    Look for

    <a href="<?php echo $this->item->link; ?>">
                <?php echo $this->item->title; ?>
            </a>

    Change to:

    <a target="_blank" href="<?php echo $this->item->link; ?>">
                <?php echo $this->item->title; ?>
            </a>

    Should edit in template if you override the file in template.

    southsouthworld Friend
    #1058005

    Thank you Moonlight! 🙂

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

This topic contains 3 replies, has 2 voices, and was last updated by  southsouthworld 7 years, 3 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum