Relocating the User-Pic/Adding a Margin under the User-Pic

Jun 22, 2007 15:36

It's a two-for-one post this Friday! The question has come up in the past about adding a margin or "gutter" under the userpic in entries (like it is in comments). Unfortunately for those with Basic/Plus accounts, this change requires modifying the print_entry() function a little.

Cut & Paste Code #1 )

how to:instructions, entries:header, s2:theme layer, entries:user icons, advanced, $acct level:paid or perm

Leave a comment

Comments 28

jense June 26 2007, 14:17:37 UTC
I tried the gutter out for my journal, but it doesn't seem to work.

Layer Theme.

Reply

av8rmike June 26 2007, 14:39:23 UTC
From the public entries that I can see, it's working OK. The "gutter" isn't supposed to displace the metadata; maybe you were thinking it would?

Reply

jense June 26 2007, 14:44:51 UTC
This entry doesn't seem to do what I think it should do. Which is, everything that is placed under my userpic (starting with 'I'm not sure if I like...') should normally be blank and the actual text should be moved more to the right, right?

Reply

av8rmike June 26 2007, 15:12:29 UTC
No, this tutorial was for people who wanted to keep the text from flowing under the icon in entries. Check the linked posts to see what was asked.

Reply


joetron2030 June 26 2007, 15:05:42 UTC
I'm having a similar issue where it doesn't seem to be working.

However, I will say that I am very much new to doing more advanced customization. I wonder if I did something wrong? I find all of this rather confusing even after having read the available documentation.

I placed the ".lj-currents, .asset-tags {clear: left;}" in my Custom CSS box. Then I placed the included code into my theme layer (called "Layout") but it doesn't seem to change anything. Did I update the correct layer?

Reply

av8rmike June 26 2007, 15:15:57 UTC
Did I update the correct layer?

Probably. Check the Look and Feel page to make sure your theme layer is the active one under "Themes", not the Manga one. I forget that step all the time.

Reply

joetron2030 June 26 2007, 17:21:26 UTC
Ah! That explains it. I've never really explored the options for that particular page. So, if I've got this right, I need to use a custom theme and layer to make this work. I can't just modify the layout layer and use the default theme. Correct?

I guess my last follow-up question is: How can I take all of the customizations I've done through the S2 "control panel" options and get that into a custom theme and layers? A link to the correct tutorial would be fine. I'm not expecting a hand-holding walk through here.

But, I do appreciate your reply. The "ah-ha!" light went off finally. :-)

Reply

joetron2030 June 26 2007, 17:30:52 UTC
Actually, don't bother answering this. I've figured it out. Thanks again!

Reply


onlysayinghello December 12 2007, 00:32:03 UTC
Do you realize like the almost anxiety I get when I know I have to ask you another question? I swear I think I'll find it on my own, and then I end up going... okay that did it that far.... but....

So I've successfully moved my user icon into the subject of the post section, and I even tracked down this post about putting a color behind the subject of the post, and even read through the 'strike-through' part of the code thinking adding that might put it across the whole post, but it sort of didn't.

I want the entire subject line, user icon section to have like a block of color underneath it. So that it looks like a header to the post with the color block behind it.

Right now I have this CSS in there

.page-header2,
.post-asset .asset-name a {
background-color: #e3e3e3;
}

Thank you in advance... again...

Reply

av8rmike December 12 2007, 02:49:58 UTC
You were pretty close, you just needed to go out a few layers of boxes:

.asset-header {
background-color: #e3e3e3;
}instead of .page-header2,
.post-asset .asset-name a

Reply

onlysayinghello December 12 2007, 02:53:23 UTC
Fantastic!!! Once again you are awesome and have helped me out!

Reply

onlysayinghello December 12 2007, 03:02:15 UTC
okay so you're getting this comment like four times now. sorry. All because strikethrough didn't want to work for me editing this comment.

Anyway, I figured out the padding placement for css, to keep my text from running into the icon... but if there was a way to have the alignment affect only the entry and not the comments would it be a simple thing? or a complicated thing?

Reply


squoctobird January 24 2009, 22:54:26 UTC
I can't get the gutter to work correctly. When I put in the codes it moves the WHOLE entry over and not just the words, so the words are still under the icon. Or do I have to have a theme layer?? I went to the tutorial on making one and I couldn't get past the first step because it says to click on developer area which I could not locate.

Here is a preview of what the codes did: http://yellowxshades.livejournal.com/172943.html

I have a permanent account, if that makes any difference.

Reply

av8rmike January 25 2009, 00:23:13 UTC
Yes, this is both a theme layer and CSS change.

Reply


(The comment has been removed)

av8rmike July 9 2009, 15:19:15 UTC
It looks like you're still using the base theme, not your theme layer, as the active one.

Reply

(The comment has been removed)

av8rmike July 9 2009, 16:18:15 UTC
You applied the theme layer correctly, but first of all: which tutorial are you trying to use? There are two in this entry that do two different things.

Reply


Leave a comment

Up