Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7869985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:28:53+00:00 2026-06-03T01:28:53+00:00

I have a pricetable plugin which opens the button links in the same window.

  • 0

I have a pricetable plugin which opens the button links in the same window. I would like to have theme opened in a new blanc window. What code do I need to add in this file?


Also note that the links are generated by a wordpress plugin, so I can’t add target=”_blank” manually in the code.

Thanks for the help

<div class="price-columns">
    <div id="column-skeleton" style="display:none">

        <span class="ui-icon ui-icon-carat-2-e-w column-handle"></span>
        <a href="#" class="ui-icon ui-icon-trash submitdelete deletion"></a>

        <div class="type">
            <input type="radio" value="recommend" name="price_recommend" />
            <label><?php _e('Recommend', 'pricetable') ?></label>
        </div>

        <input type="text" class="column-title" name="" placeholder="<?php _e('Title', 'pricetable') ?>" />
        <input type="text" class="column-price" name="" placeholder="<?php _e('Price', 'pricetable') ?>" />
        <input type="text" class="column-detail" name="" placeholder="<?php _e('Detail', 'pricetable') ?>" />
        <input type="text" class="column-url" name="" placeholder="<?php _e('Button URL', 'pricetable') ?>" />
        <input type="text" class="column-button" name="" placeholder="<?php _e('Button Text', 'pricetable') ?>" />

        <h4><a href="#" class="addfeature"><?php _e('Add', 'pricetable') ?></a><?php _e('Features', 'pricetable') ?></h4>
        <div class="feautres">
            <div class="feature">
                <span class="ui-icon ui-icon-carat-2-n-s feature-handle"></span>
                <a href="#" class="ui-icon ui-icon-trash submitdelete deletion"></a>

                <div><input type="text" class="feature-title" placeholder="<?php _e('Title', 'pricetable') ?>"/></div>
                <div><input type="text" class="feature-sub" placeholder="<?php _e('Sub title', 'pricetable') ?>" /></div>
            </div>
        </div>
    </div>

    <?php // Existing columns of the price table ?>
    <?php foreach($table as $i => $column) : ?>
        <div class="column">
            <span class="ui-icon ui-icon-carat-2-e-w column-handle"></span>
            <a href="#" class="ui-icon ui-icon-trash submitdelete deletion"></a>

            <div class="type">
                <input type="radio" name="price_recommend" id="price_recommend_<?php print $i ?>" value="<?php print $i ?>" <?php if(isset($column['featured']) && $column['featured'] === 'true') print 'checked="true"'; ?> />
                <label for="price_recommend_<?php print $i ?>"><?php _e('Recommend', 'pricetable') ?></label>
            </div>

            <input type="text" class="column-title" name="price_<?php print $i ?>_title" value="<?php @esc_attr_e($column['title']) ?>" placeholder="<?php _e('Title', 'pricetable') ?>" />
            <input type="text" class="column-price" name="price_<?php print $i ?>_price" value="<?php @esc_attr_e($column['price']) ?>" placeholder="<?php _e('Price', 'pricetable') ?>" />
            <input type="text" class="column-detail" name="price_<?php print $i ?>_detail" value="<?php @esc_attr_e($column['detail']) ?>" placeholder="<?php _e('Detail', 'pricetable') ?>" />
            <input type="text" class="column-url" name="price_<?php print $i ?>_url" value="<?php @esc_attr_e($column['url']) ?>" placeholder="<?php _e('Button URL', 'pricetable') ?>" />
            <input type="text" class="column-button" name="price_<?php print $i ?>_button" value="<?php @esc_attr_e($column['button']) ?>" placeholder="<?php _e('Button Text', 'pricetable') ?>" />

            <h4><a href="#" class="addfeature"><?php _e('Add', 'pricetable') ?></a><?php _e('Features', 'pricetable') ?></h4>
            <div class="feautres">
                <?php if(isset($column['features'])) : foreach($column['features'] as $j => $feature) : ?>
                    <div class="feature">
                        <span class="ui-icon ui-icon-carat-2-n-s feature-handle"></span>
                        <a href="#" class="ui-icon ui-icon-trash submitdelete deletion"></a>

                        <div><input type="text" class="feature-title" name="price_<?php print $i ?>_feature_<?php print $j ?>_title" value="<?php esc_attr_e($feature['title']) ?>" placeholder="<?php _e('Title', 'pricetable') ?>"/></div>
                        <div><input type="text" class="feature-sub" name="price_<?php print $i ?>_feature_<?php print $j ?>_sub" value="<?php esc_attr_e($feature['sub']) ?>" placeholder="<?php _e('Sub title', 'pricetable') ?>" /></div>
                    </div>
                <?php endforeach; endif; ?>
            </div>
        </div>
    <?php endforeach ?>

    <div class="column addnew"><?php _e('Add Column', 'pricetable') ?></div>
    <div class="clear"></div>
</div>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T01:28:54+00:00Added an answer on June 3, 2026 at 1:28 am

    Ok, if your links are generated by wordpress you may consider adding target attributes dynamically after the page loads. Use the following script after page load or document ready:

    <head>
    <script type="text/javascript">
    
    function add_target()
    {
       // Find all the anchors you want to modify
       var anchors = document..getElementsByTagName('a'),
       i = anchors.length;
    
       // Add the target to each one
       while(i--) anchors[i].target = "_blank";
    }
    
    </script>
    </head>
    
    <body onload="add_target()">
    /* your body */
    </body>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to make a printable version of my web page. I have
I have two different queries which produce the same results. I wonder which one
i have a page post2.php which prints the json array like { page: 1,
Ideally I would like to be able to make the event target all p.hiddeninput,
I have a page from which the user will be able to print .
I have a custom report which draws via Graphics2D , and uses a lot
I have a string that after print is like this: \x4d\xff\xfd\x00\x02\x8f\x0e\x80\x66\x48\x71 But I want
I would like to write a CSS selector rule that selects all elements that
I have some text like $text=--e89a8f234aade3345704b8477b83 Content-Type: text/plain; charset=ISO-8859-1 this is a text. this
I have a table which contains: -an ID for a financial instrument -the price

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.