This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

Latest video?

10 years ago · Last reply by Andrew Misplon 10 years ago

Hi,
I would like to replace the Latest Videos (which are choosen on the publication date), with a sort of “Featured videos” function that gives me more freedom to select which videos to have in evidence. Could I have a coding clue for my child theme functions?
Thanks

URL: http://Www.lorenzomarzocca.com

This is our free support forum. Replies can take several days.

Need fast email support? Get SiteOrigin Premium

Replies

1
  1. Andrew Misplon Staff 10 years, 4 months ago

    Hi Fabio

    There unfortunately, isn’t any easy way to handle this.

    If you want to try tackle this in a child theme check out index.php in the parent theme folder. If you copy index.php to your child theme you can use your own loop by changing this line:

    <?php get_template_part('loop') ?>

    You could then copy loop.php from the parent to the child theme folder and rename it to say: loop-home.php. Then in your index.php file in the child theme change 27 to:

    <?php get_template_part('loop-home') ?>

    From there it’s up to you. You’d need a custom query loop to select your posts by ID perhaps.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread