• Hi,
    How to add a banner in the end in every post? I’ve tried to find a solution through edit the php files but it is not working. It appears after the comments and I want to put the banner over them.

    Any idea?

Viewing 2 replies - 16 through 17 (of 17 total)
  • I don’t see anything wrong with the code you added. If that’s your child theme functions.php file then you need to remove the “load” line at the top. This looks like a copy of the parent theme functions.php file and, if this is in your child theme, you don’t want to load the init-core.php file twice. If this is the parent theme functions.php file then I would recommend you remove your filter/function from that file and place it in your child theme functions.php file; otherwise you’ll lose your changes when you update the theme.

    Also, this shouldn’t make any difference but you might try enclosing the href and src arguments in quotes:

    $('.single .post .entry').append($('<div align=center><a href="https://bgtrekking.com"><img src="https://planinar.org/store/banners/trekking.jpg alt=trekking/"></a></div>'));
Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘banner in post’ is closed to new replies.