Forums

Editing whilst keeping certain styles (16 posts)

  1. 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

  2. moshu
    Member
    Posted 6 years ago #

    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.)

  3. dkislingbury
    Member
    Posted 6 years ago #

    Thanks moshu, works perfectly. Is there a way to resize the comment box to a shorter width?

  4. moshu
    Member
    Posted 6 years ago #

    It should be defined either in the comments.php file or in the stylesheet - depending on the theme.

  5. MAK
    Member
    Posted 6 years ago #

    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.

  6. dkislingbury
    Member
    Posted 6 years ago #

    Thanks so much

  7. 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.

  8. moshu
    Member
    Posted 6 years ago #

    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...

  9. dkislingbury
    Member
    Posted 6 years ago #

    What gave you the impression I was a newbie, LOL.

    Thanks for the heads up.

  10. moshu
    Member
    Posted 6 years ago #

    Only newbies want to modify K... The veterans avoid it ;)

  11. dkislingbury
    Member
    Posted 6 years ago #

    Well played, hehe. Thanks for all the info moshu

  12. 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.

  13. moshu
    Member
    Posted 6 years ago #

    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.

  14. 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?

  15. moshu
    Member
    Posted 6 years ago #

    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

  16. 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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.