Forum Replies Created

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

    (@jberglund)

    Thanks, TechGnome. I’ll give that a try.
    And, Moshu – Ugh! No Computer?! Brave soul!
    The code is on our other thread: https://www.ads-software.com/support/topic.php?id=29434

    Check it out and give it a try. Thanks again!

    Thread Starter jberglund

    (@jberglund)

    Lorelle,

    I see what you mean about the Meta info being out of whack. Any thoughts as to a fix for it? Looks perfect in IE. I’m surprised it’s so off-kilter in FF.

    Weird!

    Thread Starter jberglund

    (@jberglund)

    I’ll do it today! Thanks! ??

    Thread Starter jberglund

    (@jberglund)

    Thanks, Lorelle. I appreciate the feedback!

    Yes. It DOES feel good to accomplish stuff like this. I love a good puzzle. I love it even more when I solve it the way I want! ??

    Hmm… that’s odd. My Meta section looks fine on my screen. What browser/platform are you running? I’m looking at mine with IE on a PC platform. Maybe it’s a browser discrepancy. (I still need to download Firefox and a couple others for testing purposes).

    Let me know and I’ll do further checking. Thanks again! ??

    Thread Starter jberglund

    (@jberglund)

    I’m not sure what template pages Neptune uses. I used Kubrick (default). It’s built with sections – header.php, footer.php, sidebar.php… etc.

    I placed the above code in the ‘header.php’ file above ‘The Loop’.

    (The header.php file – in Kubrick – contains all call for the style sheets, like a typical index.php page normally would. By doing this, you can make a change to that file only, and it will make changes across ALL pages it is embedded inside – index.php, page.php, category.php, single.php… etc.

    Does that make sense?

    Thread Starter jberglund

    (@jberglund)

    Thanks! It’s nice to finally feel like I’m giving something back to the board, instead of just asking for help. ??

    Thread Starter jberglund

    (@jberglund)

    Let me rephrase that first paragraph:
    The ‘header.php’ file has the code for the style sheet and the php to ‘change’ the templates per category.

    Thread Starter jberglund

    (@jberglund)

    The header is used for the php and style sheet calls on this design. (based off the Kubrick files). So, yes, it can be done with 3 column layouts, too.

    I was trying to work through some of the options with Moshu last week, which gave me more insight into what I needed to do. Check out the thread here: https://www.ads-software.com/support/topic.php?id=29434

    One of the COOL parts about doing the categories this way (though, some may not like it) is that my main page now becomes an almost dyamic layout. Every new post I make, the main page changes with the category I give the current post. ??

    So, one day my main page will have my general template up. A few hours later, if I post a home remodeling entry, THAT template takes over. I love it!

    Thread Starter jberglund

    (@jberglund)

    Got it working! Without having to create multiple category and header pages. I built the PHP into the header (which, in Kubrick, that’s where the call to the style sheets is). Then just created multiple style sheets for it to call. Here’s what I placed in the header.php:

    <style type=”text/css” media=”screen”>
    /* Calls the style sheets for each category */
    <?php
    $post = $wp_query->post;
    if ( in_category(‘3’) ) {
    include(TEMPLATEPATH . ‘/category3.css’);
    } elseif ( in_category(‘4’) ) {
    include(TEMPLATEPATH . ‘/category4.css’);
    } elseif ( in_category(‘5’) ) {
    include(TEMPLATEPATH . ‘/category5.css’);
    } elseif ( in_category(‘8’) ) {
    include(TEMPLATEPATH . ‘/category8.css’);
    } elseif ( in_category(’13’) ) {
    include(TEMPLATEPATH . ‘/category13.css’);
    } elseif ( in_category(’15’) ) {
    include(TEMPLATEPATH . ‘/category15.css’);
    } else {
    include(TEMPLATEPATH . ‘/style.css’);
    }
    ?>
    </style>

    <?php /* Calls the header image for each category – necessary code */
    $post = $wp_query->post;
    if ( in_category(‘3’) ) {
    $imgurl = “images/category3.jpg”;
    } elseif ( in_category(‘4’) ) {
    $imgurl = “images/category4.jpg”;
    } elseif ( in_category(‘5’) ) {
    $imgurl = “images/category5.jpg”;
    } elseif ( in_category(‘8’) ) {
    $imgurl = “images/category8.jpg”;
    } elseif ( in_category(’13’) ) {
    $imgurl = “images/category13.jpg”;
    } elseif ( in_category(’15’) ) {
    $imgurl = “images/category15.jpg”;
    } else {
    $imgurl = “images/all.jpg”;
    }
    ?>
    <style type=”text/css” media=”screen”>
    /* Disable the header style in the individual style sheets and embed it here. */
    #header {
    background: url(<?php bloginfo(‘stylesheet_directory’) ?>/<?php echo $imgurl; ?>);
    height: 120px;
    margin: 0 auto;
    width: 100%;
    padding:0;
    border: 1px solid #BEBEBE; }
    </style>

    The php code for the header images was partially what I put together from how the curtisfamily site runs. But, the rest was pieced together from the codex info and other bits and pieces I heard of from others.

    It does exactly what I’ve been looking for. Took me 2 months, but hey! ;o)

    Thanks for the help, Moshu.

    Thread Starter jberglund

    (@jberglund)

    Afternoon everyone! Okay… this whole ‘category/style’ thing has been a bugger for a while for me. I think I’ve finally gotten it to work, with just one minor flaw:

    please go here: https://www.jbergdesign.com
    (remodeling, taekwon do, family, etc. – some have different styles, some keep the default)

    It’s working, as it’s picking up the style sheets that for the different catagories. BUT, as you can see, I’m missing the header images. Can anyone see why that may happen?

    This is from the css files (same in each, but, with different .jpg)
    #header {
    background: url(“images/category1.jpg”);
    height: 120px;
    margin: 0 auto;
    width: 100%;
    padding:0;
    border: 1px solid #BEBEBE; }

    Any thoughts as to why the background image refuses to show up? I’ll continue looking on my end. But, any thoughts would be appreciated! ??

    Thread Starter jberglund

    (@jberglund)

    Thanks for the article. That helps, a bit.

    Hmm…. so, one needs an RSS reader in order to subscribe to an RSS feed? As I mentioned, most of my visitors really aren’t ‘computer savvy’. If they get email and visit an occasional website, that’s about it. My main visitors are family and friends who want updates of our remodeling project and other postings.

    They’re not going to ‘GET’ the whole RSS thing. Is there another way for folks to get an email message when I update my site?

    Thread Starter jberglund

    (@jberglund)

    Hmm… yeah, I’m using permalinks.

    That all sounds like that will get a bit complex. I can just leave them as is. I was just thinking about it because I’m kind of anal and when I look at all the ‘random’ numbers, I have an urge to FIX them. ??

    Thanks for the info, though!

    Thread Starter jberglund

    (@jberglund)

    Okay, so… If I already have posts under the current numbers, then, would I wind up with problems if I change them?

    Say… I have 3 posts under hobbies’ which is numer 15… but, I change it to number 6… I’d lose the link?

    Thread Starter jberglund

    (@jberglund)

    Same here. I know what I *want* to do… I jsut don’t know how to do it. If you ever find anything like that out, please pass it along. I’ll do the same. ??

    Thread Starter jberglund

    (@jberglund)

    Cool! Okay… THIS worked! https://www.jbergdesign.com/archives/category/home-remodeling/
    compared to: https://www.jbergdesign.com

    This WILL give me a LOT of files. But, at least it’s a ‘temporary fix’ until I can figure out a more simplistic way to get it to work. I want this site up to have with my online resume (for design purposes). So, I’ve been busting a gut trying to get my different categories back online.

    Thanks Moshu! I will be forever grateful for your help!!!! (well, until someone comes along with an easier route. Then, I’ll make sure I pass it along to you, too ;o)

    Much thanks!!!!!!

Viewing 15 replies - 1 through 15 (of 38 total)