Another customization question- switch Headlines & Featured

Viewing 10 posts - 1 through 10 (of 10 total)
  • #1948
    gdaniels99
    Participant

    I would like to switch the places of the Featured and Headlines sections. I would like my Featured articles to be at the top of the blog where the Headlines currently resides. And I would like the headlines to be where the featured section is.

    Is it possible to do this? If so, how?

    #1949
    Daniel Tara
    Keymaster

    It’s possible by just switching the [code]query_posts[/code] command between them. However, I recommend using a plugin like [url=http://www.featuredcontentgallery.com/]Featured Content Gallery[/url]

    #1950
    gdaniels99
    Participant

    Thanks for this tip! I’ve decided to use the Featured Content Gallery plugin. It solves my problem perfectly. The instructions require placing a line of code in the theme where you want the gallery to show up. I would like the gallery to show up immediately above the Headline section of the Home page. Where in the code would I post it to accomplish this? Here’s the code:

    <?php include (ABSPATH . ‘/wp-content/plugins/featured-content-gallery/gallery.php’); ?>

    #1951
    gdaniels99
    Participant

    OK, I’ve tried installing the code for the Featured Content Gallery but it appears to be in the wrong sized container. I placed it immediately before
    <div id=”headline”> in the Home.php file. Yet no matter how large I make the gallery size in the plugin settings, it refuses to fill the entire space. Here’s a link to my site: [url=http://www.2012Quest.com]http://www.2012Quest.com[/url]

    Obviously I need to insert the plugin code somewhere else. I tried inserting it within the <div id=”headline”> </div> section but that didn’t work out too well either.

    Confused. :/

    #1952
    Daniel Tara
    Keymaster

    Remove <div id=”featured”> from the code and don’t forget to remove the closing div.

    #1953
    gdaniels99
    Participant

    OK, that didn’t work. So I contact the plugin maker and they told me the problem was in the style.css and that I needed to remove this bit of code:
    #featured
    {
    float:left;
    width:280px;
    margin:0 0 10px 10px;
    padding:10px;
    border:#daccb0 1px solid;
    background:#f4f1e9 url(images/list.png) top no-repeat;
    overflow:hidden;
    }

    But when I removed this code the Featured content box changed location and size. Basically it moved up under the Headline box and the width changed to match the Headline box.

    So is it not possible to have two content areas named Featured on the home page. Because it looks like the css is limiting BOTH the Featured Content Gallery at the top and the Featured block below the Headline block to a maximum 280 px.

    Can I change the Featured block into a News block and show articles in the category News, instead?

    #1954
    Daniel Tara
    Keymaster

    Sure you can. Just remember to change #featured to #news in style.css

    #1955
    gdaniels99
    Participant

    Wow, all I had to do was change the id of the Feature Content Gallery from “Featured” to “Featured1” in its php code and it worked like a charm! I just spent three hours on something that now seems so obvious! haha. Amazing how one little number added to the id name can make all the difference.

    #1956
    ChattahoocheeNow
    Participant

    Hi Daniel, I searched and tried five different themes, but this was just the right combo of everything! I especially appreciate the forum and support.

    I am trying to do something similar to gdaniels99. Except, I basically want to eliminate the “headline” section and have the Feature Content Gallery instead of that. I have already succeeded in making the Featured section into a different category.

    I can’t quite follow what gdaniels99 did…

    My site is still in the prototype phase: chattahoocheenow.org.

    Appreciate any help!

    –Lisa

    #1957
    Daniel Tara
    Keymaster

    You need to remove everything that’s between <div id=”headline”> and </div><!– /headline –> and replace it with the gallery’s function code.

    Before the latest section, there is a function query_posts() remove the offset parameter from that function.

Viewing 10 posts - 1 through 10 (of 10 total)

You must be logged in to reply to this topic.