I used the following code to style my subtitle in my template but it does not style accordingly. I have attempted to use other php get codes and it styles fine. Why is this so?
$postheader .= '<h3 class="entry-title"><a href="' . get_permalink() . '" rel="bookmark">' . get_the_title() . '</a></h3>'; $postheader .= '<div class="subtitle">'; $postheader .= '' . the_subtitle() . ''; $postheader .= '</div>';
Also, I have attempted the technique mentioned in another thread to style the code but, like my current example, it always snaps to the top (for positioning) and sometimes does not even show the font css style I have implemented.
Over here in the code you can see that I attempted to place the subtitle after that ‘h3’ title, but the result appears such that the subtitle comes before the ‘h3’ title. This is pretty frustrating.
My website is at http://www.welovesingaporeproperty.com/.
A screenshot of the problem is here: https://www.dropbox.com/s/u044domth59n2zk/Capture.JPG
- The topic ‘Styling for subtitle not working’ is closed to new replies.