Support » Fixing WordPress » how to remove the word "blog" when I press to see a single blog post page

  • Hello!

    I have bought and installed a premium wp theme.

    The blog is presented on the home page and the problem is that when i press on a single post- when I want to watch a page dedicated only to this post, the heading is :blog + post name

    for example: if my post name is Hello World

    when i press to see the post it will look like
    blog hello world

    how should I remove the word blog at any view of single posts?

    thank you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • @lironeglikman

    If you’re referring to the URL displaying blog before the title then you’ll need to modify the sites permalinks.

    If this is visible on an actual post page, you’ll either need to edit the theme files, possibly content.php or single.php, or contact your theme provider as it’s a premium there.


    hi thank you james!
    the URL doesnt displaying the word BLOG

    what should i look for to change in the single php or content php?

    thank you

    i have only single php this is the code;

    <?php if(is_ajax()):?>
    <?php the_post(); the_content(); ?>
    <? else : ?>
    <?php get_header() ?>

    <?php if(have_posts()): ?>
    <?php the_post() ?>
    <div class=”heading”>
    <div class=”heading-inner”>
    <h2>“><?php echo (get_post_type() == ‘uds-portfolio’ ? ‘Portfolio’ : ‘Blog’) , ‘ ‘ , the_title() ?></h2>
    <form action=”<?php bloginfo(‘url’) ?>” method=”get” class=”searchbox”>
    <div class=”bg-search-left”></div>
    <input type=”text” name=”s” value=”type here to search” id=”top-search” />
    <button type=”submit”></button>
    <div class=”bg-search-right”></div>
    <div class=”clear”></div>
    <?php endif; ?>

    <?php rewind_posts(); ?>
    <div id=”content”>
    <div id=”main”>
    <?php if(have_posts()): ?>
    <?php while(have_posts()): the_post() ?>
    <div id=”post-<?php the_ID() ?>” <?php post_class(‘post’) ?>>
    <div class=”thumb-heading”>
    <div class=”heading-category”>
    <h2 class=”post-heading”>” rel=”bookmark”><?php the_title() ?></h2>
    <div class=”date”>
    Posted on <?php the_time(‘j’) ?>, <?php the_time(‘M’) ?>
    <div class=”clear”></div>
    <?php the_category(”); ?>
    <div class=”clear”></div>

    <div class=”post-content”>
    <?php the_content() ?>
    <div class=”clear”></div>
    <?php if(is_single()): ?>
    <?php wp_link_pages(array(
    ‘before’ => ‘<p class=”center” id=”post-pager”>’,
    ‘after’ => ‘</p>’,
    ‘link_before’ => ‘ ‘,
    ‘link_after’ => ‘ ‘,
    ‘next_or_number’ => ‘number’,
    ‘nextpagelink’ => __(‘Next page »’),
    ‘previouspagelink’ => __(‘« Previous page’),
    ‘pagelink’ => ‘%’,
    ‘more_file’ => ”,
    ‘echo’ => 1 )
    <?php if(get_option(‘uds-show-authorbox’) == ‘on’): ?>
    <div id=”authorbox”>
    <?php if (function_exists(‘get_avatar’)) { echo get_avatar(get_the_author_meta(‘user_email’), ’80’); }?>
    <h4>About “><?php the_author_meta(‘display_name’); ?></h4>
    <p><?php the_author_meta(‘description’); ?></p>
    <?php endif; ?>
    <?php comments_template() ?>
    <?php endif; ?>
    <div class=”clear”></div>
    <?php endwhile; ?>
    <div class=”post-pages”>
    <div class=”pages-prev”><?php next_posts_link(__(“« Older entries”))?></div>
    <div class=”pages-next”><?php previous_posts_link(__(“Newer entries »”))?></div>
    <div class=”clear”></div>
    <?php else: ?>
    <p>Sorry, no posts matched your criteria</p>
    <?php endif; ?>
    <?php get_sidebar(); ?>
    <div class=”clear”></div>
    <?php get_footer() ?>
    <?php endif; ?>


    Try replacing

    <h2>"><?php echo (get_post_type() == 'uds-portfolio' ? 'Portfolio' : 'Blog') , ' ' , the_title() ?></h2>


    <h2>"><?php echo (get_post_type() == 'uds-portfolio' ? 'Portfolio' : '') , ' ' , the_title() ?></h2>


    thank you so much James! that works!!


    Can I ask you another question?
    I would like to know how the change the website’s font and size for the blog posts and pages general information.
    (in regards to the header- only change font, but not change header size)

    I have added a plug in that was supposed to do so, using google fonts, but it made all the content smaller.

    thank you!



    This maybe slightly tricky with a premium theme and again depends on how it’s coded, try locating the main CSS file within your folder, the chances are it will be called style.css or will be located within a CSS folder.

    Then find the ‘body’ styling and apply the following property (feel free to change the size to whatever suits you)

    font-size: 14px;

    If there are other styles overriding this you can try forcing it by altering the code to.

    font-size: 14px !important;


    my stylesheet basic form has only theme creator info. though weve added a certain programming that ive tried apply the changes on to, and nothing happened,

    thank you so much! in this case ill contact the theme provider!

    All the best!


    Sorry I couldn’t be anymore specific, premium themes generally have much more contents than standard themes.


    thank you so much! you were very helpful i appreciate that!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘how to remove the word "blog" when I press to see a single blog post page’ is closed to new replies.