Forum Replies Created

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter tameem

    (@tameem)

    Forgot about the fact that my theme was the child theme of WordPress’ twentyten theme. I found the template being used in the parent theme category.php. This is the template that was being used since category.php was not present in the child theme.

    To overload this file and use my own template I changed the fields to
    get_template_part( 'category', 'index' );

    This tells WP to look to the child theme first and use category.php to output category posts.

    Thread Starter tameem

    (@tameem)

    help! anyone? Id like to figure this one out. Thanks!

    Thread Starter tameem

    (@tameem)

    esmi, agreed. Actually when I first started to use WordPress I was pleasantly surprised by the semantic, generally well-written markup! And to be sure, it is MUCH better then most CMS programs out there and I prefer WordPress. And I do understand about the possible need for the additional markup, particularly classes.

    Although, I think we can agree that in most cases, I cannot see where additional divs is necessary in most cases, with possible exceptions due to presentational requirements. Gosh, I hate seeing a div added when there is already a block-level element that can be used as a styling hook! So I tend to be less, well, tolerant personally when I see additional divs rather then classitis. Basically I would agree with your statement about multiple classes though and it makes sense. Thanks for your reply.

    Thread Starter tameem

    (@tameem)

    esmi, yes thats what I meant. core files being classes.php, function.php, etc. All those files in wp-includes, etc. Good point about it being safer. Just to clarify, the only changes I make are markup type changes, output, like classes, divs, or use another element for example. Ill swap for example an em tag for p tag where appropriate. Or add a p tag and remove the div tag. And I have heavily changed the template files, yes. But for example when you add another link for your navigation, it will add a classes to each list item (wp_list_pages). Ideally i love for it to just be:

    <ul>
    
    	<li>Home</li>
    	<li class="current>About</li>
             <li>Contact</li>
    
    </ul>

    But im sure you know what i mean. Thanks so much for your replies. I appreciate it.

    Thread Starter tameem

    (@tameem)

    Yea Im sure you are right about developing my own theme. That’s what Im trying to do, but I dont pretend to be expert in PHP, Im still learning that. I just have such a hard time with all that extra crap in my pages. That over-zealous behavior on my part and concerned about little details has caused such a delay in developing my web site!

    Thanks for your reply. I may have to bite the bullet here!

    Thread Starter tameem

    (@tameem)

    I assure you my friend, when your dealing with extra div’s that can contribute to slower rendering. when you have code like this:

    <div><p>next_link() prev_link()</p></div> instead of <p>next_link() prev_link()</p> and many other such code, it can make a difference. There are many other examples I could give you. Ive studied a great deal in HTML and CSS, and I think that’s area that is lacking with many WP theme developers. You can quickly tell when you inspect the theme’s CSS file. I do appreciate your reply.

    Thread Starter tameem

    (@tameem)

    esmi, I appreciate your reply and yes I have heard that also. But for those of us who wish to customize and clean up unnecessary or extraneous code in our pages, I would think there is an approach that would allow us do it? ‘Im a purist when it comes to markup and it would be great to do this.

    Thread Starter tameem

    (@tameem)

    alchymyth, I can’t find the code. It had come across it, but don’t remember where I found it on the internet and thought someone might know.

    thanks t31os_, I will take a look at the threat and see if it helps me.

    Thanks for the replies.

    Thread Starter tameem

    (@tameem)

    I remember seeing somewhere on the internet how to add a class to every other comment, instead of one to each comment. Let me clarify please and say I am referring to the classes contained within my markup, not my stylesheet. I prefer to have a class applied to every other comment within my markup to reduce unnecessary code and not fall into the common “classitis” that plagues so many themes and WordPress functions.

    thanks for your response, I appreciate it.

    Thread Starter tameem

    (@tameem)

    this is the exact same response I got to another post of mine. Now Im really confused! Anyone?

    Thread Starter tameem

    (@tameem)

    Ok thanks for the response, but I dont really understand any of that. Can someone give me some more details and information on what I need to do? I was thinking I should be able to find the function on question and make the modification necessary?

    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)