How to add code to GeneratePress theme?
-
I have installed the KIA subtitle plugin. I use the GeneratePress theme. I read the FAQ about ‘how do I display the subtitle in my theme’ and ‘where do I add this code?’.
Unfortunately, I need some help here.In the content.php file I have added the code like this:
[some code before this]
*/
do_action( ‘generate_before_content’ );
?><header class=”entry-header”>
<?php
/**
* generate_before_entry_title hook.
*
* @since 0.1
*/
do_action( ‘generate_before_entry_title’ );the_title( sprintf( ‘<h2 class=”entry-title” itemprop=”headline”>‘, esc_url( get_permalink() ) ), ‘</h2>’ );
if( function_exists( ‘the_subtitle’ ) ) the_subtitle( ‘<h3 class=”subtitle”>’, ‘</h3>’ );
/**
* generate_after_entry_title hook.
*
* @since 0.1
*
* @hooked generate_post_meta – 10
*/
do_action( ‘generate_after_entry_title’ );
?>
</header><!– .entry-header –><?php
/**
* generate_after_entry_header hook.
*
* @since 0.1
*
* @hooked generate_post_image – 10
*/
do_action( ‘generate_after_entry_header’ );[some more code after this]
But this is not working. So, what do I do wrong?
- The topic ‘How to add code to GeneratePress theme?’ is closed to new replies.