WordPress.org

Forums

how to remove the word "blog" when I press to see a single blog post page (10 posts)

  1. lironeglikman
    Member
    Posted 3 years ago #

    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!

  2. James Duffell
    Member
    Posted 3 years ago #

    @lironeglikman

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

    http://codex.wordpress.org/Using_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.

    ^JD

  3. lironeglikman
    Member
    Posted 3 years ago #

    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

  4. lironeglikman
    Member
    Posted 3 years ago #

    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">
    <fieldset>
    <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>
    </fieldset>
    </form>
    </div>
    </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>
    <div class="clear"></div>
    </div>
    </div>
    <?php the_category(''); ?>
    <div class="clear"></div>

    <div class="post-content">
    <?php the_content() ?>
    <div class="clear"></div>
    </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">
    <div>
    <?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>
    </div>
    </div>
    <?php endif; ?>
    <?php comments_template() ?>
    <?php endif; ?>
    <div class="clear"></div>
    </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>
    </div>
    <?php else: ?>
    <p>Sorry, no posts matched your criteria</p>
    <?php endif; ?>
    </div>
    <?php get_sidebar(); ?>
    <div class="clear"></div>
    </div>
    <?php get_footer() ?>
    <?php endif; ?>

  5. James Duffell
    Member
    Posted 3 years ago #

    @lironeglikman

    Try replacing

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

    With

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

    ^JD

  6. lironeglikman
    Member
    Posted 3 years ago #

    thank you so much James! that works!!

    Great!

    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!

    L

  7. James Duffell
    Member
    Posted 3 years ago #

    @lironeglikman

    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;

    ^JD

  8. lironeglikman
    Member
    Posted 3 years ago #

    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!

  9. James Duffell
    Member
    Posted 3 years ago #

    @lironeglikman

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

    ^JD

  10. lironeglikman
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Topic