dkislingbury
Member
Posted 6 years ago #
I am currently trying to design a template for my existing site. What I am trying to achive is the post on the site but no header or sidebar. I have managed to get rid of teh header and sidebar by deleting the contents of sidebar.php and header.php. The problem is that all teh style of the main page go when you delete the contents of the header.php file. Any ideas of a work around this.
Also how do you resize the comment box, so that the width is around 400-600 px.
Thanks
You cannot delete the whole content of the header.php - it will not work!
Delete/comment out only the part that rerlates to the header(image); I guess this is what you are after.
(You can also achieve the same "headerless" look by tweaking the stylesheet.)
dkislingbury
Member
Posted 6 years ago #
Thanks moshu, works perfectly. Is there a way to resize the comment box to a shorter width?
It should be defined either in the comments.php file or in the stylesheet - depending on the theme.
The comment box is is built with a few elements one of which is the <textarea> element.
Look for something like this, usually found within your comments.php file if your theme uses one:
<textarea name="comment" id="comment" cols="100%" rows="10" tabindex="4"></textarea>
The cols= and rows= builds the input area for writing comments. These set up the width and height of that part.
dkislingbury
Member
Posted 6 years ago #
dkislingbury
Member
Posted 6 years ago #
I have had a look in the style sheet but i can't seem to find teh code whcih removes teh header and sidebar whilst keeping you with the same style with the main blog area. I am using the kubrick theme. Anybody any idea what code i need to comment out to have the desired effect.
As I said above: the "header" (if you mean the header image) is defined in the header.php file of the theme, not in the CSS.
The sidebar is called in various files, e.g. index.php, archive.php, page.php by a template tag: get_sidebar.
BTW, the default K. theme is the worst to modify for a newbie...
dkislingbury
Member
Posted 6 years ago #
What gave you the impression I was a newbie, LOL.
Thanks for the heads up.
Only newbies want to modify K... The veterans avoid it ;)
dkislingbury
Member
Posted 6 years ago #
Well played, hehe. Thanks for all the info moshu
dkislingbury
Member
Posted 6 years ago #
One other problem I am having, I have been able to do all of this you have explain but I can't seem to find the value with alters the width of the comments page in the style sheet. Currently my site looks like this with a page width of 575px;
http://dkislingbury.co.uk/header.php?content=home
but when you select comments all the content shifts to teh right, where can i find this calue i need to change.
That's a very strange address you have linked above. Template files (except the index, maybe) shouldn't be linked directly. There is something wrong either with yuor tweaking or with that theme.
Like all the K-clones, the theme should use two different bg-images for the main page and for the single view (what you call "comment page") - but obviously that portion of code was deleted from the header.php.
I told you K. is not easy to modify. Maybe somebody will explain it - I don't do K.
dkislingbury
Member
Posted 6 years ago #
Which theme would you recommend for a beginner but has a nice style to the comments page like kubrick?
I don't know what is "nice style to the comments page" (as I said there is NO comments page, that's the single post view) - for you.
Resources:
http://themes.wordpress.net/
Using_Themes
Using_Themes/Theme_List
dkislingbury
Member
Posted 6 years ago #
Thanks mate you have been so helpful, explaining all this stuff to me. If there is anyway I can help you in return, let me know.