How do I put HTML code right below Post Title?

Closed23770NormalHotMag Wordpress
Profile Reply
deankeen Client


I\’d like to put my own custom HTML (ads and other text) directly below the post title as well as right after the page content. I don\’t see widget slots for either of these areas, so what file can I edit in the theme to insert this HTML?



User Description Posted On
Shindiri Support team Administrator


For - right after the page content.: this should be included into u functions.php
add_filter( 'the_content', 'my_the_content_filter', 20 );
* Add some html to the end of page content
function my_the_content_filter( $content ) {

if ( is_page() )
// Add image to the beginning of each page
$content = sprintf(
'%s <a href="#">Some html goes here</a>',

// Returns the content.
return $content;
For -  directly below the post title: you have to edit two files.

The first one if you chose in theme option paralax post, which will turn of the sidebar in single post.
Edit the file:


bellow line 61

<div class="single-title">
<h1 class="s-title s-paralax-title"><?php echo esc_html( $title );?></h1>

Add what you want to show.

The same in this file for single post with sidebar:
hotmag/partials/single-with-sidebar.php, line 92

<div class="single-title">
<h1 class="s-title"><?php echo esc_html( $title );?></h1>

Best regards,
Shindiri Studio |

× This ticket is closed.