Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #16722

    Hi,

    I’ve set up my frontpage as a 4 column portfolio, but I would really like to have a slideshow at the top (as if it were the latest post in a blog format), between the columns and the menu. I’ve created a copy of portfolio.php and renamed it so it can be called as a specific template.

    I’ve looked over this post http://www.kriesi.at/support/topic/sliderpost-work-around but this would require the frontpage to be in a blog format. My question therefore is: How do I put in a slideshow at the top on a portfolio page?

    Thanks in advance!

    - Mizzquizz

    #92635

    I didn’t test this mod but try to replace following code in template-portfolio.php (or your custom portfolio template):

    <div id="main" class='portfolio'>

    with:

    <div id="main" class='portfolio'>

    <?php
    $medium_prev_image = display_featured_media(1);
    if(!empty($medium_prev_image)) echo $medium_prev_image;
    ?>

    and add some featured media images to the portfolio page.

    #92636

    Wow, that worked really well! Thanks!

    Do you have any suggestions as to how I might target the image size of this individual page (i called it template_portfolio_homepage.php) either through CSS or PHP? Any help in this regard would be much appreciated!

    But thanks a lot for helping me out with this hurdle!

    #92637

    Okay, I’ve been battling how to make the front page image show properly. I tried changing the image sizes in functions.php which made the size for my portfolio entries work. But the image on the frontpage seems to stuck “behind” the rest of the body (take a look: http://enkonference.dk/wp/ ), I would like the top image to display just as it would in a fullwidth template layout. I suspect a small modification of the template php could rectify this minor error, only I’m at a loss as for how to change it.

    Again I would be very grateful if you could help out!

    Regards,

    mizzzquizz

    #92638

    Hi,

    I think it has something to do with this #top .slideshow element. If you can change its width and height then fix the position, it will be ok. Something like this.

    #top .slideshow {
    height: 235px;
    width: 100%;
    }

    Regards,

    Ismael

    #92639

    Thank you for the pointer Ismael, it definitely seems to be the element I should put my focus on. Thank you both for helping me out.

    #92640

    Hi mizzquizz,

    Glad we could help. :)

    Cheers,

    Ismael

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

The topic ‘Featured post slideshow on frontpage that is set up as portfolio’ is closed to new replies.