• I wonder how I can ‘apply different rules’ and manage what is displayed on the different pages I have created

    For example on my home page I want to get rid of the ‘title’ under the image where it says ‘START’, the ‘leave a reply’ and ‘post comment. Instead I just want to be able to display some information about the website. I would like to decide myself what font, size, line spacing etc, and the width of this column.

    I would be extremely grateful if someone could help me out.

    Michelle

    p.s my URL is

    http://test.michellehedberg.net/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter admin_michelle

    (@admin_michelle)

    Hi again Esmi and once again thank you so much for helping me out,

    I have managed to create a static front page so that’s great, but as for managing different content and functions on the different pages…

    I went to the http://codex.wordpress.org/Conditional_Tags link you suggested but I’m finding it really hard to understand what they mean.

    If I understand correctly, am I meant to

    1. download the template.php file from the Delicate theme
    2. Write ‘is_front_page() ‘ somewhere in this file or is_page( 42 ) for example (the id for the other pages

    3. and then what? For example if I want to remove the ‘title’ under the image where it says ‘START’, the ‘leave a reply’ and ‘post comment. what code do I write to do that?

    and if I want to make a column there instead, specifying font, size, line spacing etc, and the width of this column, where and how do I write this (I mean I know what css to write for this but do you need any additional information in this situation or… do you actually write the code in the template.php file or do you link the template.php file to your style sheet?

    4. Do you upload the template.php file back into the Delicate folder or do I upload it to my Child Theme’s folder?

    Have I understood correctly or misunderstood completely?

    Michelle

    Thread Starter admin_michelle

    (@admin_michelle)

    Hi again Esmi,

    When I’m looking at the code for the page.php page, I came across this bit of code

    <div class=”title”><h2><?php the_title(); ?></h2></div>

    I assume this refers to the title section (where it says ‘START” on my home page underneath the image (see my url) http://test.michellehedberg.net/ so this should be the thing to alter if I want to remove this feature.

    Normally in html/css when something is refered to as class “something” you will find the attributes for this, marked as .something in the stylesheet but I have searched the entire Delicate stylesheet and I can’t find any reference to this div class “title” so I don’t know where to make alterations + it also makes me even more confused as to how wordpress’ structure actually works.

    It is clear that the attribute for this class specifies a certain font, size, weight etc. and also that it can’t be more than maximum 2 lines long but… if it is not specified in the style sheet then where is it specified?

    thanks

    Michelle

    you will find the attributes for this, marked as .something in the stylesheet

    Just because an element has a class applied to it in the code does not means that the class will have been styled via the CSS. This applies to any site – not just WordPress sites.

    if it is not specified in the style sheet then where is it specified?

    Use Firebug to find out.

    Thread Starter admin_michelle

    (@admin_michelle)

    I’m actually completely stuck and confused on how to do this, I have managed to create a page template (following the instructions found on WordPress documentations) and I have set my home (start) page to follow this template and they appear indeed to be corresponding. The problem is that I have no idea to get the page to ‘behave how I want it to behave’) as the code doesn’t appear to follow the usual html/css system I’m used to (in terms of the “class” being given attributes in the stylesheet by writing .class etc)

    I want to remove the “leave a reply” section all together and I was thinking that if I could get to the code, either where it currently says ‘START’ or ‘Leave a reply’ and give attributes for this section, let say that it could have the same column width as it has at the moment but give it a much bigger height and change the font size etc. then maybe this could be the section where the client could write a short descriptive ‘About Me’ piece in the WordPress section where you currently fill out the ‘title’ section… but… I have no idea how to go about this…

    http://test.michellehedberg.net/

    If the relevant class isn’t already in the stylesheet & you need to style that class, add it yourself. as for your About me idea, I think you may be going about this the wrong way. Why not use the Bio field in the User Profile and pull that into tour front page template?

    Thread Starter admin_michelle

    (@admin_michelle)

    When I use firebug, I only seem to get my own code (which of course I’m already familiar with)

    I would love to be able to be able to find this out via Firebug but don’t know where/how I will find it. As I said if I click html or css I just get my own code, if I click on DOM I see all this complicated stuff that I don’t really understand what it is…

    As for the Bio field in the User Profile – do you mean the ‘About Yourself’ ‘Biographical info’ section? How do I ‘pull that into my front page template?

    Also can I control myself what it is going to look like (style it) and place it where I want.

    At the moment I have managed to delete the ‘START’ title from my home page but the big gap is still there, how do I get rid of the gap (set the margins) Also I don’t want the ‘leave a reply’ on any of my pages except my contact page, how do I get rid of this? I have spent literally all day trying to find out where in the code/in what ‘document’ or section of WordPress this is situated but… without any luck.

    Also I really need to understand how the page templates work in order to carry on with my website as most of my pages will display very different content (some will display audio tracks, music videos and images). I have read all documentation and seem to understand how it works in theory i.e. I have created a page template that my home page ‘follows’ but then when I actually want to make changes and DO something I can’t find where in the code(s) to do this…

    Once again thank you so much for your help, really appreciate it

    Thread Starter admin_michelle

    (@admin_michelle)

    Hooray! I found a reply you had given someone else regarding the problem of removing the ‘Leave Reply’ section (deleting the <? php comments_template(); ?>) so at least now that problem is solved. : )

    Now I’m just wondering what to do about that annoying gap between the text (post) and the image that was caused from removing the title section…

    Thread Starter admin_michelle

    (@admin_michelle)

    I’m also wondering where I can style the font that is being displayed in this post.

    This is the code in the style sheet that I assume relates to this post, I’ve tried changing all the sections where fonts are mentioned but… nothing works (is there perhaps a setting for how to do this yourself via WordPress?

    CODE (p.s I have added the letters ‘hem’ in front of the classes so that these changes will only apply to my home page template

    [CSS moderated as per the Forum Rules. Please just post a link to your site.]

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How can I apply different rules what's displayed for different pages’ is closed to new replies.