Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Page & Category Menu Bars »

How do I make one custom link in the Pages Menu?

Prev Previous Post   Next Post Next
Old Oct 27, 2009, 09:27 AM
135 posts · Jun 2009
How do I make one custom link in the Pages Menu?

Hi guys!

I searched previous threads and found an answer to this question (with the same title) from Flynn. However, I am getting an error message.

Flynn said: Add this to the bottom of Atahualpa's functions.php

<?php function replace_menu_link($string) {
return str_replace('http://www.yoursite.com/link/to/dummypage/',
'http://www.othersite.com/link.html', $string);
add_filter('wp_list_pages', 'replace_menu_link');

Now, to be clear on what I did, I literally did what he said and added this as an additional <? ?> section after the last ?> of the original function.php code. My specific code is:

<?php function replace_menu_link($string) {
return str_replace('http://bestbiztips.com/quickmedquote/web-conference/',
'http://wc.iboomerang.com/skin-iboomerang/join.jsp?p=7711106', $string);
add_filter('wp_list_pages', 'replace_menu_link');

Doing this, I get the following error:

Parse error: syntax error, unexpected T_STRING in /home/content/a/b/x/abxnetwork/html/quickmedquote/wp-content/themes/atahualpa/functions.php on line 1059

The website I am working on is for a client: http://www.bestbiztips.com/quickmedquote. I want the Web Conference page to go to an outside URL.

I am not conversant in PHP, so this is pretty Greek to me.

What am I missing?

Thanks so much!



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't make a link work on a page. Imawebgirl Forum How-To 8 Oct 24, 2009 08:12 PM
[SOLVED] How do I make one custom link in the Pages Menu? iPuppet Page & Category Menu Bars 7 Sep 24, 2009 12:22 PM
Single Post Pages--How to make post title a link? chainpin Atahualpa 3 Wordpress theme 4 Aug 20, 2009 01:02 PM
How to make the Pages display in sidebar, show only the Parent Main Pages Leoni Sidebars & Widgets 2 May 27, 2009 12:13 AM
Adding custom pages to menu FH4U Page & Category Menu Bars 2 Feb 9, 2009 02:31 PM

All times are GMT -6. The time now is 01:54 AM.

Powered by vBulletin® Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.