Forum Replies Created

Viewing 15 replies - 16 through 30 (of 38 total)
  • Thread Starter jberglund

    (@jberglund)

    I’ll take any solution I can find right now. ??

    I’ve been thinking about exactly what you said – creating different headers and categories. What’s stopping me from doing that right now is: I don’t know how to call a different stylesheet. This is all I’ve seen, so far: @import url( <?php bloginfo(‘stylesheet_url’); ?> );

    So… I’m hoping someone can help me figure that code out.

    I’m still VERY unfamiliar with PHP. I can pick my way through parts of it and say ‘Oh… that’s what that does.’ But, that’s it, for now. I did get a book, though. ??

    Thread Starter jberglund

    (@jberglund)

    I’m still having a difficult time with this ‘category’ subject. Can anyone help me with this?

    I’ve managed to create a new ‘category.php’ file. I would like to give each category a different header and color palette. So, a different style sheet is necessary. I tried just using Curtis’s idea above to simply change the header – the images don’t show up: https://www.jbergdesign.com/archives/category/home-remodeling/

    I’ve also tried reading through the codex/Category_Templates file – I don’t know php enough, yet, to figure out how to WRITE it, and I don’t think the ‘sticky-snip’ explanation is what I need.

    Using the ‘Kubrick/default’ template to build my site, the call for the style sheet is in the ‘header.php’ file. So… how can I call separate stylesheets, that are each based on a different category, from that file?

    I’m getting desperate here. So far, I’ve seen a lot o f people say this can be done and it’s easy, but I’ve only seen Curtis’ site as coming close to it.

    Thread Starter jberglund

    (@jberglund)

    Well… looking at the files from Chris’s site, the category header ‘call’ is built into the header.php file. So… working with that, I managed to get it to call main header… but, it leaves a blank space where the header should be in the category pages.

    So, obviously, I’m missing something. Hmm…

    Considering this code to ‘call’ the category numbers:
    <?php
    if (is_category()) {
    $imgurl = “images/”.single_cat_title(”,FALSE).”.jpg”;
    } else {
    $imgurl = “images/all.jpg”;
    }
    ?>

    and THIS line that calls the style sheet:
    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />

    Does anyone know how I can change that to call a completely different style sheet (instead of just calling the image)?

    Thread Starter jberglund

    (@jberglund)

    Cool. Thanks, Marc. I’ll take a look! (Though, I may be back for more questions later! ??

    Thread Starter jberglund

    (@jberglund)

    Basically, I want it to appear just as the archive pages currently do. Which was typical of a category page I saw in another theme. This is what I have now, and I wish to keep: https://www.jbergdesign.com/archives/category/family/

    But… I want to create a ‘category.php’ page so I can apply different styles to each category. Thanks for the Codex info, I read through that earlier. But, I need to be able to first create a category.php page in order to use that.

    So… what I’ll need to know is ‘how do I CALL the category information’?

    Also… has anyone actually been successful with that codex info? If so, I’d love to see your site and how each of your categories differ.

    Thread Starter jberglund

    (@jberglund)

    Yes. I read through them. And, thought I made the necessary adjustments. I know I could have missed something, since I’m new to PHP.

    Thread Starter jberglund

    (@jberglund)

    Hmm…. Uploaded it. Activated it. Changed the code to read ‘ [read more… ] ‘

    It’s not working. :o/

    Thread Starter jberglund

    (@jberglund)

    Yes. I did try changing the field, including changing it to a ‘text’ field. Still no go.

    Is there a way I can simply ADD a new field for ‘city’? Maybe keeping the ‘url’ one there also?

    Problem is, as I said, I’m VERY new to PHP. I still don’t know all the ins and outs. I’d really like to have this field added, though.

    Thread Starter jberglund

    (@jberglund)

    I did try changing the ‘comments_author_url’ to ‘comments_author_city’ and going through EVERY file and every example of it and changing it. No matter WHERE I found it and what I changed (including the field in my database) I kept getting a ‘fatal error – failure to call function…’ notice on when I brought up the comments page.

    Maybe I just didn’t find all the locations of it, but, I went through all the files. If nothing else, I guess I’d be okay with just eliminating the URL altogether.

    My thing is, we’d like to have folks post comments and have a title above it say ‘Julie from Green Bay says…’

    Thread Starter jberglund

    (@jberglund)

    Thanks for the input everyone. Actually, as soon as I submitted this post, I found the answer here: https://www.ads-software.com/docs/installation/different-address/

    So far, so good.
    Thanks!

    jberglund

    (@jberglund)

    so far, I’m still trying to get some PHP writing help on this topic. But, two threads that have been started may help you find the answer:

    https://www.ads-software.com/support/topic.php?id=24988

    and this one:
    https://www.ads-software.com/support/topic.php?id=20048

    As I said, they’re both a good start. My problem is that Im new to PHP and don’t exactly know how to ‘build’ this into my current pages. If you can find that out, please let me know. ??

    Good luck!

    jberglund

    (@jberglund)

    Ryan: Please forgive me, I’m new to PHP and am not completely sure how to properly ‘code’ the information you mentioned. I already tried to use Manabar’s code… and I failed.

    Can you be more specific on how to type that and where I would need to put it?

    As I said… I’m still new to this, and am trying to learn it as I go. Any help would be GREATLY appreciated.
    Thanks!
    Jberglund

    jberglund

    (@jberglund)

    joeking: I had the same question. Take a look at this thread and see if it helps: https://www.ads-software.com/support/topic.php?id=20048

    I still haven’t had my ‘permalinks’ question answered, so I haven’t started implementing it, yet.

    Thread Starter jberglund

    (@jberglund)

    Okay. My actual question is: What ‘page’ or .php file does wp_list_pages point to? (Does it send it to a particular page template? Like single.php, or page.php?)

    Thread Starter jberglund

    (@jberglund)

    Okay. I did just what you said. I now have the links working (though, presenation is off kilter), and it goes to a page for me. But, no CSS styles on it. Can I ask ‘where’ I’m pointing the code to? What page/template is it picking up?
    That might help me tie things together better.

    Thanks, again!

Viewing 15 replies - 16 through 30 (of 38 total)