IPB

Welcome Guest ( Log In | Register )

Movable Type

We're moving to movabletype.org!

At long last, we're moving to forums powered by, well, Movable Type itself. You'll want to bookmark http://forums.movabletype.org/ for future reference, and in the meantime you can view these old forums as a read-only archive of past posts. Thanks for being part of the community!

 
Reply to this topicStart new topic
> Link Banner To Home Page?, click banner to reach main index?
suepie
post Oct 23 2008, 01:31 PM
Post #1





Group: Members
Posts: 6
Joined: 7-October 08
Member No.: 53,652



how do i link the banner on the Archive pages back to the main index? I found a tutorial on 3.2 but not 4.21.
Go to the top of the page
 
+Quote Post
robbdmc
post Oct 23 2008, 09:25 PM
Post #2





Group: Members
Posts: 9
Joined: 2-July 08
Member No.: 53,080



i dont know, but good luck getting an answer. very few helpful people here
Go to the top of the page
 
+Quote Post
imabug
post Oct 24 2008, 02:51 AM
Post #3





Group: Members
Posts: 2,543
Joined: 16-October 03
Member No.: 16,767



wrap the banner with something that looks like
CODE
<a href="<$MTBlogURL$>">blahBannerblah</a>


--------------------
MT 4.2 MySQL5.0.51 Perl 5.10.0 PHP5.2.5 Apache2.2
[img]http://feeds.feedburner.com/Imablog.gif[/img]
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GS d-(+) s: a C++ UX++++V++S++L++ P+>+++ L+++ E+>++ W++ N++(+++) o? K? w !O !M V-- PS PE Y+ PGP++ t++ 5++ X++ R+ tv++ b++(+++) DI++++ D+ G++ e+++>++++ h--- r+++ y?
-----END GEEK CODE BLOCK-----
Go to the top of the page
 
+Quote Post
suepie
post Oct 24 2008, 06:10 AM
Post #4





Group: Members
Posts: 6
Joined: 7-October 08
Member No.: 53,652



QUOTE (imabug @ Oct 24 2008, 06:51 AM) *
wrap the banner with something that looks like
CODE
<a href="<$MTBlogURL$>">blahBannerblah</a>


where do I do this? I have a .CSS stylesheet ("minimalist-sea.css") where I call the "header.png" BUT WHEN I PUT THAT STRING AROUND IT the header doesn't show up.

/* Header -----------*/

#header { background: #fff url("header.png") no-repeat left top; width: 100%; height: 196px;
}

#header a {
color: #fff;
}

#header-content {
width: 926px;
height: 196px;
margin: 30px 0 40px 20px;
}



SO I GO TO "Banner Header" Template Module and I see this and it looks like the <a href="<$mt:BlogURL$>" is already there, but it doesn't work.

<div id="header">
<div id="header-inner">
<div id="header-content">
<mt:Ignore><!-- Use h1 and h2 html tags on the main index of the blog as the title, use divs on all other pages where there are page titles. --></mt:Ignore>
<mt:If name="main_index">
<h1 id="header-name"><a href="<$mt:BlogURL$>" accesskey="1"><$mt:BlogName encode_html="1"$></a></h1>
<h2 id="header-description"><$mt:BlogDescription$></h2>
<mt:Else>
<div id="header-name"><a href="<$mt:BlogURL$>" accesskey="1"><$mt:BlogName encode_html="1"$></a></div>
<div id="header-description"><$mt:BlogDescription$></div>
</mt:If>
</div>
</div>
</div>

THANKS FOR ANY DIRECTION - I'm obviously not a programmer.
"http://www.24xps.com"
Go to the top of the page
 
+Quote Post
OtherNiceMan
post Oct 24 2008, 10:54 AM
Post #5





Group: Members
Posts: 2,039
Joined: 4-January 04
From: UK
Member No.: 19,351



Ahh,

You are adding the header in the stylesheet, so the link solution above won't work.

What you will need to do is apply the image in the HTML rather than the style.

I'll have a quick play, it should be a case of adding the image to the header content section and taking out the h1 & h2 bits.


--------------------
Rob Kenny
The Composing Stick Movable Type Tricks & Tips
Twitter|Flickr|Vox
Sites I manage: Darren Kenny: Professional Cyclist O.B.E
Go to the top of the page
 
+Quote Post
OtherNiceMan
post Oct 25 2008, 03:59 AM
Post #6





Group: Members
Posts: 2,039
Joined: 4-January 04
From: UK
Member No.: 19,351



Here is a quick and dirty solution (in some much as users need JavaScript enabled)

CODE
<div id="header" onClick="window.location='<$mt:BlogURL$>'">
<div id="header-inner">
<div id="header-content">
<mt:Ignore><!-- Use h1 and h2 html tags on the main index of the blog as the title, use divs on all other pages where there are page titles. --></mt:Ignore>
<mt:If name="main_index">
<h1 id="header-name"><a href="<$mt:BlogURL$>" accesskey="1"><$mt:BlogName encode_html="1"$></a></h1>
<h2 id="header-description"><$mt:BlogDescription$></h2>
<mt:Else>
<div id="header-name"><a href="<$mt:BlogURL$>" accesskey="1"><$mt:BlogName encode_html="1"$></a></div>
<div id="header-description"><$mt:BlogDescription$></div>
</mt:If>
</div>
</div>
</div>




--------------------
Rob Kenny
The Composing Stick Movable Type Tricks & Tips
Twitter|Flickr|Vox
Sites I manage: Darren Kenny: Professional Cyclist O.B.E
Go to the top of the page
 
+Quote Post
suepie
post Oct 25 2008, 01:00 PM
Post #7





Group: Members
Posts: 6
Joined: 7-October 08
Member No.: 53,652



okay that worked, the little mouseover pointer didn't change but i will worry that later.

I will study what you did versus what was there and maybe learn something.

can you tell me what accesskey = '1' means?

THANK YOU OtherNiceMan!

i have more questions - can I ask you more?

Go to the top of the page
 
+Quote Post
OtherNiceMan
post Oct 25 2008, 01:45 PM
Post #8





Group: Members
Posts: 2,039
Joined: 4-January 04
From: UK
Member No.: 19,351



Accesskey is defines a keyboard shortcut (http://en.wikipedia.org/wiki/Access_keys).

As I said, this is quick and dirty. Had a chat about this with a few people and there is also a css image replacement solution which I'll get written up for tomorrow.

I visit the forums most days so post if you have a question.


--------------------
Rob Kenny
The Composing Stick Movable Type Tricks & Tips
Twitter|Flickr|Vox
Sites I manage: Darren Kenny: Professional Cyclist O.B.E
Go to the top of the page
 
+Quote Post
Grey
post Jan 21 2009, 05:11 AM
Post #9





Group: Members
Posts: 11
Joined: 13-January 09
Member No.: 55,891



QUOTE (OtherNiceMan @ Oct 25 2008, 09:45 PM) *
Accesskey is defines a keyboard shortcut (http://en.wikipedia.org/wiki/Access_keys).

As I said, this is quick and dirty. Had a chat about this with a few people and there is also a css image replacement solution which I'll get written up for tomorrow.

I visit the forums most days so post if you have a question.



Did anyone ever come up with a CSS replacement. ??
Go to the top of the page
 
+Quote Post
OtherNiceMan
post Jan 21 2009, 07:32 AM
Post #10





Group: Members
Posts: 2,039
Joined: 4-January 04
From: UK
Member No.: 19,351



Here is a pure CSS based slution http://www.composing-stick.net/2009/01/how...--part-two.html


--------------------
Rob Kenny
The Composing Stick Movable Type Tricks & Tips
Twitter|Flickr|Vox
Sites I manage: Darren Kenny: Professional Cyclist O.B.E
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 11.24.09 - 10:40 PM