This topic contains 4 replies, has 3 voices, and was last updated by  Norris 1 year ago.

Masonry Home Page

  • Post count: 2

    Hi,

    Using the Emily Theme to make a website with only one portfolio, is it possible to create a home page that displays all of the pictures in a masonry grid?

    Thanks,

    Tom.

    Post count: 6495

    Hi,

    Please add this code to your child theme’s functions.php file:

    Then you’ll be able to choose a specific Portfolio entry as your front page from Settings > Readings > Front page displays.

    Post count: 2
    This reply has been set as private.
    Post count: 2

    Hi Daniel,

    I created an Emily child theme and tried adding the code to the child theme’s functions php file.

    Unfortunately I got a fatal error:

    <b>Fatal error</b>: Cannot redeclare emily_add_pages_to_dropdown() (previously declared in /home5/studipn2/public_html/rosgraff/wp-content/themes/emily-portfolio-child/functions.php:12) in <b>/home5/studipn2/public_html/rosgraff/wp-content/themes/emily-portfolio-child/functions.php</b> on line <b>43</b>

    Although I can still see the Dashboard, all links from it show this error.

    Any advice of how I can restore restore the website?

    Thanks,

    Tom.

    Post count: 5104

    Hi, Tom,
    From the error message, it looks like you have pasted the code twice in your functions.php!

You must be logged in to reply to this topic.