loop.php in child-theme

  • Author
    Posts
  • #83737

    Hi there
    first of all, thank you for creating such an awesome theme. I like it very much. I’ve come very far, customising it. But one thing won’t work.
    I changed the loop.php in the parent theme, all changes are visible on the site. When I do that with the loop.php in the child theme, the changes are not visible. It’s as if wordpress is not processing the loop.php from the child theme.
    I really would appreciate some help regarding this issue.
    keep up the good work!
    many thanks
    stephan

    #83770

    ok. I got it working with this inserted in the functions.php:

    get_template_part('includes/loop');

    but now there is an error: Cannot redeclare verbosa_excerpt_length_words() (previously declared

    What I am trying to do is:

    Inserting a picture right before the h1 on a site. So I added the following code to the loop.php:

    Sorry, I cannot post it here. It consists echo and div-tags and they get filtered out when posting, even if I use the code option

    #83771

    I’ll try it like this:

    div class="featured-bar"></div
    <?php
    echo '<div align="center">';
    echo '<imgsrc="/wp-content/uploads/2019/07/icon.jpg" align="center">';
    echo '</div';
    #83773

    nevermind. I just found out, I should have inserted the code into content-page.php.

    sorry to bother.

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

The topic ‘loop.php in child-theme’ is closed to new replies.