[personal profile] lauchlen posting in [community profile] style_system
Hello all, I'm back with another couple questions.


Google tells me that turning a header image into a link isn't possible in CSS without having HTML code to go with. Since DW uses CSS stylesheets for layouts, I'm not sure how to do what I want. Or if it's even possible.

What I'd like is to turn the header image in this journal into a link that takes one back to the main journal page when clicked from say, an entry or the archive page, etc.

Can I achieve this with a custom layer? If so, what type of layer? I have no idea how to edit layers. I can copy/paste/apply and that's about it.

Also, is it possible to add a 'back to top' link at the bottom of entries if it's not part of the journal's style?

The base journal theme being used is Basic Boxes and the maker of the layout said to just choose whichever from the list, so right now it's 'Green' by branchandroot. The unedited layout CSS is at the maker's journal, here.

My edited CSS code (which is a complete mess where I've added to the original), is as follows:



Any help is greatly appreciated.

Date: 2015-03-21 07:20 am (UTC)
marahmarie: (M In M Forever) (Default)
From: [personal profile] marahmarie
There is a back to top link (as per a formal suggestion I made years ago, the top of page link is enabled in all journal styles by default now, which is why I take an interest whenever this question comes up). The CSS in use is currently hiding it. Remove this and you will see the link on the bottom left of the footer in a gold color:

#footer {
display:none;
}


Turning the header image into a link probably will require using s2 (in a custom theme layer) - I haven't seen it done since my time on LJ, where certain style communities would bake up s2 to do everything from image maps (still by far my favorite way to linkify a header) to simple image links. Hopefully one of the more s2-inclined people will see this post and offer help with that; I have to just stick to what I know. :)
Edited (clarity) Date: 2015-03-21 07:26 am (UTC)

Header image link

Date: 2015-03-28 07:59 pm (UTC)
rosecarmine: (Default)
From: [personal profile] rosecarmine
Hello. I think I found a solution to your first matter.

You need to create a new layer. Go to "Customize style", click "Developer area", click "Your layers". Create a top level layer of the "layout" type. Go to "Public layers", click "Basic boxes", click "Raw source code" and copy the entire page.

Return to your newly created layer, click edit and paste what you copied.

Then search for:



and replace it with this:



Click "Save and compile".

Then go to "Select style", click "Your custom layers" and apply your new layer.

Now you have to install your layout on the new layer. Follow the original instructions from no.2 to 4.

After you apply the css, there are a few changes to make. First search for #journaltitles-container{ and replace its content:

#journaltitles-container{
font-family: 'Josefin Sans', Helvetica, sans-serif;
width:756px;
height:223px;
background:url(http://i57.photobucket.com/albums/g223/lauchlen/Millaje/headerwide_1.jpg)
no-repeat #7f6f4b;
}

then delete the background from #header > .inner:first-child and the height from .module-section-header.

I tried this and it worked for me. Let me know if you have any trouble. Sorry, I don't know a simpler solution and I hope this isn't too confusing.

Re: Header image link

Date: 2015-03-31 09:13 am (UTC)
rosecarmine: (Default)
From: [personal profile] rosecarmine
You're welcome.

Profile

Dreamwidth style system discussion

September 2025

S M T W T F S
 123456
78 910111213
14151617181920
21222324252627
282930    

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 17th, 2025 03:49 am
Powered by Dreamwidth Studios