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 »

[SOLVED] How to include a link pointing to different (non wp) subdomain in category m

Old May 28, 2010, 09:19 PM
6 posts · May 2010
[SOLVED] How to include a link pointing to different (non wp) subdomain in category m

First of all, this is a very very kool theme and thank you so much for sharing this.

Now, if anyone could please help me out, that would be great. I'm a beginner and started building this site for my retired dad. Thanks a bunch in advance.

I installed wp into a sub domain, blog.domain.com. I changed the config file (href) so that the top logo will point to www.domain.com. I'd like to include a navigation like that points to www.domain.com in the category menu pages bar underneath the rotational image in the header.

This below doesn't work for what I am trying to do. I just want to include "Home" that points back to www.domain.com in that category menu bar while keeping all the functionality in tact. Other pages I created should point to blog.domain.com so the existing functionality works perfectly.

Thank you so much!!

----from Flynn's post from Oct 2008------
1) Create the "Greetings" page, with content.

2) Create a blank page for the new blog posts homepage named i.e. "News".

3) At Site Admin -> Settings -> Reading -> Front page displays, choose:

"Front page displays" -> "A static page"
"Front page" -> [Greetings page you created earlier]
"Post Page" -> [blank "News" page you created earlier]

4) At Atahualpa Theme Options -> Page Menu Bar, delete the "Home" from "Home link in Page Menu Bar" and change "Sorting order of Page Menu Bar" to "menu_order" in case you've changed that.

5) At Site Admin -> Pages, click on all pages and watch the menu tab "Attributes" on the right side. Change the value of "order" to move the pages around in the page menu bar. For instance, give the "Greetings" page the lowest value to put it on the left end of the page menu bar, and give the blank "News" page the highest value to put it on the right end of the page menu bar.

I'd recommend to give the pages values like 100, 200, 300 ... instead of 1, 2, 3 .... That way you can always sort a new page in between two older pages without having to change the "order" value of all pages all over again.
Old Jun 1, 2010, 01:57 PM
Flynn's Avatar
3,768 posts · Oct 2008
Munich, Germany
You could add this to Atahualpa's functions.php to add a link to the output of wp_list_categories:

PHP Code:
addHomeToCats($string) {
'<li><a href="http://www.domain.com/">Domain.com</a></li>' $string;

Old Jun 2, 2010, 09:35 PM
6 posts · May 2010
Thanks so much, Flynn. It worked beautifully.

I would also like to add a link to the external homepage in the horizontal nav bar that shows blog pages. This nav bar is underneath the horizontally-placed rectangle picture.

It's right-above what you helped me with.

Again, thanks so much for your help and letting us use your theme.
Old Jun 3, 2010, 01:01 AM
Flynn's Avatar
3,768 posts · Oct 2008
Munich, Germany
The same code should work with wp_list_pages too:

PHP Code:
addHomeToPages($string) {
'<li><a href="http://www.domain.com/">Domain.com</a></li>' $string;

Old Jun 3, 2010, 06:58 AM
6 posts · May 2010
Works perfectly!!

Thanks so much again!!


category menu bar, link to subdomain

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Feature Request:Page bar include instead of exclude Kadin Page & Category Menu Bars 2 May 11, 2010 02:01 PM
Is it possible to include an external link along with page links? machepap Sidebars & Widgets 1 Feb 24, 2010 02:50 PM
RFE: add Only Include Pages option for Page Menu Bar Henry64 Page & Category Menu Bars 4 Jan 1, 2010 09:38 AM
How can I get a category link into the Page Menu Bar? billzarchy@gmail.com Page & Category Menu Bars 1 Jun 8, 2009 01:18 PM
Pointing to a category from ther page menu bar causes a misalignment pbravin Page & Category Menu Bars 7 Apr 10, 2009 07:12 PM

All times are GMT -6. The time now is 11:54 PM.

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