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)
-   -   Clickable links in header (http://forum.bytesforall.com/showthread.php?t=15504)

Hugh Sep 27, 2011 04:07 AM

Clickable links in header
 
I studied the other threads related to clickable links in header, and they are closed so I am hoping this new one will get me an answer. I didn't want to use the suggestions in the other threads because I don't like tinkering with code or even theme options too much. So I simply stuck an image map on the front of the root index.php file that calls wordpress. The advantage of this approach, I thought, is that I can test the image map as a separate web page without tinkering with a live blog, and then paste it in. The problem is that Feedburner can't find the feed any more. It tells me 'It looks like this is a web page, not a feed'. It looks like a web page to me, too, but I would have thought it would look for a feed ON a web page. But then I haven't a clue how Feedburner works. My code is below. Any suggestions?
<?php
ob_start(); ?> [got this from another site to solve the 'can't modify headers' problem]
<html>
<head>
<title></title>
</head>
<body bgcolor="#FFFFFF">
<div align="center">
<p><map name="FPMap0">
<area href="books.html" target="_blank" shape="rect" coords="515, 2, 996, 245"></map><img border="0" src="header.jpg" usemap="#FPMap0"></p>
</div>
</body>
</html>
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
[... etc]
?>

juggledad Sep 27, 2011 04:11 AM

What version of Atahualpa and WP?
What is the url?

Hugh Sep 27, 2011 04:44 AM

Wordpress 2.9.2, Atahualpa 3.4.6, www.hugh-small.co.uk takes you there.
Thanks

juggledad Sep 27, 2011 06:33 AM

are you adding that code to the index.php in the wordpress root or the index.php in the atahualpa folder?
why don't you put your links in the 'Configure header area'? Wrap them in a <div> with an ID or class then you can use CSS to position them

Hugh Sep 27, 2011 09:44 AM

The index.php that I modified is in the root directory of my web, it is the index.php which is the entry point for my URL. The Atahualpa theme content is in a subdirectory of another directory, using the method described in other threads on how to keep it out of the root. I haven't touched the index.php in any Atahualpa folder.

juggledad Sep 27, 2011 10:05 AM

I wouldn't go messing with the index.php file in the wordpress root, it will vanish the next time you do an update.

Wh not try my suggestion?

Hugh Sep 27, 2011 11:27 AM

I see from Wordpress Codex that feedburner has problems if Wordpress is not in your root folder so I don't know why it ever worked. I'm not going to get into hacks to fix that.
The reason I haven't followed your suggestion to 'wrap them in a <div> with and ID and class and use CSS to position them' is that I don't know how to use a div, an ID, a class, or a CSS. I only copied the <div> align from another site because it seemed simple to try. I shouldn't really be allowed out, should I? Is the technique explained in one of the other threads?

juggledad Sep 27, 2011 02:16 PM

once you get to the point of deciding to do things like this, it's time to learn some HTML and CSS :o

ID's and classes are the way you can identify HTML elements so you can have the CSS style them. You could add
HTML Code:

<div id="my-div"><a href="http://yourdomain.com/whereyouwanttolinkto" title="this is my link">Press here to go to my link</a></div>
now you could add to the CSS Inserts
HTML Code:

div#my-div {position: relative; top: 40px; right: 50px;}
you will need to play with the numbers to get it to be where you want it and you need to put in the right address.

A great resource for both HTML and CSS is w3schools.com


All times are GMT -6. The time now is 10:26 AM.

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