[resolved] Adding subtitles to posts in Church / Omega (4 posts)

  1. GiacomoB
    Posted 1 year ago #

    Hello, I would like to add subtitles to my posts on my blog (www.sivispacem.net) but I haven't been able to do so yet. I am using a plugin called KIA Subtitle (http://www.kathyisawesome.com/436/kia-subtitle/) whose readme.txt provides the following instructions for adding a subtitle to the post:

    Add the 'the_subtitle()' tag to your theme:
    if(function_exists('the_subtitle')) the_subtitle();
    If you need to 'return' the value, you can use get_the_subtitle() which accepts a $post_id parameter if you need to use it outside the loop
    if(function_exists('the_subtitle')) $subtitle = get_the_subtitle( $post_id );

    Further instructions on where to add the tag state:

    = Where do I add this code? =

    Unfortunately, I cannot tell you *exactly* what file to place the above code in because 1. I don't know where you want to display the subtitle and 2. every theme's structure is different.

    However, in general, the_subtitle() is a template tag so you will want to put it in a template file. Probably, you are looking for the file that contains your post loop. For most themes it's *single.php* ( or *page.php* for pages ), but for many it could also be *content.php*. Assuming you want the subtitle to display directly after your main title, you'd place the above code after:

    <h1 class="entry-title"><?php the_title(); ?></h1>

    However, I have looked through the Omega and Church .php files (page, content, functions, etc.) and I have not found the correct location (any location) that makes the code work. I've been trying for a while and since I've had no success I wanted to hear from the support staff/other users if they had any advice they could provide to help my issue. Where should I put the code to display the subtitle in either Church or Omega so that it displays on my website's posts?

    Thanks in advance!

  2. GiacomoB
    Posted 1 year ago #

    Anyone there?

  3. batharoy
    Posted 1 year ago #

    Not sure about this but copy the entry-title.php from the parent to the child folder.
    Put your code below the existing code in that file.

  4. GiacomoB
    Posted 1 year ago #

    Sorry for the delay - that fixed it, thanks so much!

Topic Closed

This topic has been closed to new replies.

About this Theme

About this Topic