Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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


  #1  
Old May 28, 2010, 09:19 PM
alabamian2
 
6 posts · May 2010
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------
http://forum.bytesforall.com/showthr...press+category
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.
---------------------------------------
  #2  
Old Jun 1, 2010, 01:57 PM
Flynn's Avatar
Flynn
 
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:
add_filter('wp_list_categories''addHomeToCats');
function 
addHomeToCats($string) {
return 
'<li><a href="http://www.domain.com/">Domain.com</a></li>' $string;

  #3  
Old Jun 2, 2010, 09:35 PM
alabamian2
 
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.
-alabamian2
  #4  
Old Jun 3, 2010, 01:01 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
The same code should work with wp_list_pages too:

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

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

Thanks so much again!!

Bookmarks

Tags
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 08:25 PM.


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