Forum has been created to help all our customers in properly working our theme. We offer complete help with configuration theme and make default look, just like on our Brandon demo. We don`t offer theme customization.

Before creating a new discussion, please:
1. Check on forum if discussion hasn`t been created before. Use the forum Search on the right.
2. Read carefully the documentation included to package.
If you didn`t find what you need and would like to post a new question click the "Start a New Discussion" button on the right.
4. You can post on forum only after registration (you need purchase code to register) .


NOTE!!! If you are starting a new topic and have got problems with your site and you want us to check what`s wrong please always give url to your site because without that we can`t check what`s wrong. Each case may be different because of your installed plugins, servers or other things.

How to add titles to blog posts
  • Hi,

    I'm trying to figure out how to add title - or better jet - how to show posts titles while in the post
    While I'm at any category the titles of posts are displayed but when I click and enter the post its self 
    I get no title - nowhere---
    The picture below shows what I mean and where I would like for title to appear...
    THANKS!


    image
  • 4 Comments sorted by
  • HI,

    I need assistance - what to do - should I add  <?php wp_title(''); ?> and can itz be done through chiled theme?

    THANKS!
  • Ok, i managed and just for the sake of other users...

    It was "content-single.php" which I hadd to edit
    but first I created a child theme and made an includes directory in it and paste the content-single.php file from original theme in to it then I added on line 37:

    <h3><?php echo ShortenText(get_the_title()); ?></h3>

    I also edited the functions.php to shorten my titles lenght ( I have very long titles on my site ) :)

    // Change to the number of characters you want to display

    $chars_limit = 50;

    $chars_text = strlen($text);

    $text = $text." ";

    $text = substr($text,0,$chars_limit);

    $text = substr($text,0,strrpos($text,' '));

    // If the text has more characters that your limit,
    //add ... so the user knows the text is actually longer

    if ($chars_text > $chars_limit)

    {

    $text = $text."...";

    }

    return $text;

    }

    $url = explode('?', 'http://'.$_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
    $GLOBALS["qm_url_patch"] = url_to_postid($url[0]);

    function list_articles( $atts ) {
    $query = new WP_Query( array( 'cat' => $atts['cat'], 'posts_per_page' => $atts['count'] ) );

    ob_start();

    if( $query->have_posts() ): ?>
    <ul>
    <?php while( $query->have_posts() ): $query->the_post(); ?>

    <li><a href="<?php the_permalink(); ?>"><?php echo ShortenText(get_the_title()); ?></a></li>

    <?php endwhile; wp_reset_postdata(); ?>
    </ul>
    <?php if( isset( $atts['readmoretitle'] ) ): ?>
    <a style="font-weight: bold; display: block; text-align: right;" href="<?php echo get_category_link( $atts['cat'] ); ?>"><?php echo $atts['readmoretitle']; ?></a>
    <?php endif; ?>

    <?php else: ?>
    Nema posljednjih objava
    <?php endif;

    $recent = ob_get_clean();

    return $recent;

    }
    add_shortcode( 'listarticles', 'list_articles' );