Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   [SOLVED] How to include a link pointing to different (non wp) subdomain in category m (http://forum.bytesforall.com/showthread.php?t=7325)

alabamian2 May 28, 2010 09:19 PM

[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------
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.
---------------------------------------

Flynn Jun 1, 2010 01:57 PM

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;



alabamian2 Jun 2, 2010 09:35 PM

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

Flynn Jun 3, 2010 01:01 AM

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;



alabamian2 Jun 3, 2010 06:58 AM

Works perfectly!!

Thanks so much again!!


All times are GMT -6. The time now is 11:19 AM.

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