• I want to display the featured content grid on single posts. I’ve gotten the PHP to call the featured content function working and put them in a main-content div, just like they are on the home page, but the CSS isn’t working at all.

    First, rather than displaying side by side, the featured content boxes are stacked vertically, and each one is the full width of the page. They also changed to be >600 px high, and the entry title was displayed after them.

    I added

    @media screen and (min-width: 673px) {
    .slider .featured-content .hentry, .featured-content  {
    height: 300px;
    }
    }

    to my stylesheet and that got the image box to be the right height, but they’re still not a grid and the entry headers are still showing up in the same places, in the middle of the blog post now.

    The featured content grid continues to perform normally on the home page.

    I’d leave a link to show you, but I’m running this locally on my computer.

The topic ‘Display featured content on single.php’ is closed to new replies.