WordPress - Edit Page - Link button to URL

Hi there,

I am editing a header page in WordPress

I need to link a button directly to a URL, and in a new page or tab.

Current:
<div class="navitem"><a href="<?php bloginfo('home'); ?>/apply/">Apply</a></div>

To directly link to the following fictitious link, and in a new page, or TAB:  http://55.1.22.0/server/apply.jsp

Thanks for your help,
Rene
LVL 10
ReneGeAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ess KayEntrapenuerCommented:
change
<div class="navitem"><a href="<?php bloginfo('home'); ?>/apply/">Apply</a></div>


to

<div class="navitem"><a href="http://55.1.22.0/server/apply.jsp">Apply</a></div>
Ess KayEntrapenuerCommented:
sorry,  for new tab add this
target="_blank"


so it will be


<div class="navitem"><a href="http://55.1.22.0/server/apply.jsp" target="_blank">Apply</a></div>

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
ReneGeAuthor Commented:
Hi esskayb2d,

Thanks for your prompt reply.

Your solution works perfectly.

Thanks and cheers :)

Rene
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

ReneGeAuthor Commented:
Can you please tell me what would it be for opening a new tab rather than a new window?

Thanks
Ess KayEntrapenuerCommented:
i think that depends on the browser
ReneGeAuthor Commented:
I tried with Chrome, I.E. and Firefox.  All 3 opens a new tab.

No worries, I'm happy with the tab, so we don't need to spend more time on this.

Thanks mate :)
Ess KayEntrapenuerCommented:
if you want a new window,  you can set size
ReneGeAuthor Commented:
Thanks :)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
WordPress

From novice to tech pro — start learning today.