can i put the comment box up and not down on the page?
-
hello
i need the comment box to be first and up, and not down the page, how can i do it?
thanxThe blog I need help with is: (visible only to logged in users)
-
-
@dhaikoboy
If you have CSS editing experience, you can get the paid custom CSS upgrade and renew it annually. It will allow you to stylize the appearance of themes you find here > Appearance > Themes, but it does not allow you to change the functionality, by editing the underlying template. Also note that CSS is theme specific, so you cannot use the CSS stylesheets from other themes with the themes here at wordpress.COM.Since there is no official Staff support for the CSS upgrade, and precious little Volunteer support, I recommend that you don’t buy the upgrade unless you have at least moderate understanding of HTML and CSS because you must be prepared to do the work on your own.
If you are considering purchasing the upgrade, you can go to Appearance > Edit CSS. There wordpress has provided a preview function where you can try before you buy.
http://en.support.wordpress.com/custom-css/ -
@raincoaster, I don’t think you can do it with CSS. I’ve tried something similar in the past and came to the conclusion that you would have to be able to hack the theme PHP script files to do that.
-
Whether you could do it with CSS would depend on how the div’s were laid out and how the page elements were arranged in those div’s.
-
-
-
Ah. thanks. I thought it might be possible using the same sort of misdirection as the Text Widget/Header Tab substitution.
-
Not usually, but it depends on the CSS and how it is organized. In general though I have not had much luck changing the order of elements since the general order is set in the PHP files.
-
If you want to move the comment box before the list of replies you can do something like this (preview it on raincoaster’s blog):
.comments {position:relative; padding-top:30em;} #respond {position:absolute; top:0;}First set the position property to relative for the entire “comments” div. You can then set the comment box itself to have absolute position and this will be calculated from the place of the containing “comments” div rather than the page itself. Move the comment box to the top and apply padding to the containiner so that there is enough space. As long as you can select those two parts of the page with CSS you should be in business so applying it to other themes shouldn’t be a problem. I hope that made sense!
lh
-
Hmmm, I’ll have to look at that. The problem I was seeing in the post was that the elements I wanted to move were not in the same div, and I know of at least one case where the comment box/fields was not inside the same div as the list of comments.
-
Well position:absolute; will offset content with respect to the first non-statically position element further up the node tree. This means its can be just a case of finding which element you need to set to position:relative; so you can offset from there. You’re right in that, unfortunately, this might not always be the case. If you find any tricky themes then point them out and I’ll take a look too.
lh
-
- The topic ‘can i put the comment box up and not down on the page?’ is closed to new replies.