Support » Theme: Sampression Lite » adding post title to page title?

  • I love this theme, and have only one thing I’m struggling with. I’d like to be able to add my blog post title to the page title, so that when sharing the post to Facebook it shows up as “Blog Name | Post Title” rather than just “Blog Name”. Is there a straightforward way to do this? I’ve poked around a bit in the templates and functions and haven’t been able to easily identify where I’d need to make this change.

    Any suggestions or pointers would be welcome!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi Liz,
    You have to add some Facebook specific metas. For example

    <meta property="og:title" content="The latest Load Shedding Schedule:" />
    <meta property="og:url" content="" />
    <meta name="og:description" content="Get the list of load shedding schedule in Nepal online and download or bookmark according to your preferences.">
    <meta property="og:image" content="" />
    <meta property="og:site_name" content="" />

    Just place them before

    <!-- Charset -->
    	<meta charset="<?php bloginfo('charset'); ?>">


    function sampression_add_meta() {

    on your functions.php file on wp-content/themes/sampression-lite/includes/ directory.

    And let me know if this helps.


    Thanks! I can do that in order to fix the sharing to Facebook, but it won’t change the actual page title that’s being generated for things like bookmarks. I’d really like to have the title tag include the full post name if at all possible.

    just put

    <title><?php the_title(); ?></title>

    after the <head> tag and you have the title where it belongs.


    if you put this in the header.php your index.php has a title of your last post…
    is there a way around it?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘adding post title to page title?’ is closed to new replies.