WordPress.org

Forums

[resolved] remove vertical bar to left of site title (9 posts)

  1. billdinardo
    Member
    Posted 4 years ago #

    I am a complete novice to creating a Web site. Can you please tell me how to remove the vertical bar that is appearing to the left of my site title. I am using the theme Elegant Grunge. Thank you.

  2. Agus Suhanto
    Member
    Posted 4 years ago #

    Left or right sidebar are often becomes integral parts of the layout of a theme. Usually, a good theme designer provides an option to enable left or right sidebar, so that you can turn it on or off.

    As far as I know, Elegant Themes provides many good premium WordPress themes. To my knowledge, they are not just themes, but theme framework. They added many functionalities not available in trivial WordPress themes. And that's why they also has dedicated support.

    But if you understand a little bit about CSS, the layout can be tweaked to your preference. It can be ease, or otherwise it can be complex. It depends on the HTML structure and layouting of the theme.

  3. billdinardo
    Member
    Posted 4 years ago #

    Thank you for responding. My problem really isn't in the sidebar. It's in the tab at the top of the page with my site title. A vertical bar '|' appears to the left of my site title. Sorry if I'm not explaining it clearly.

    I read where someone suggested deleting the '|' artifact in the theme Realmac Software '06 <title>%site_title% | %title%</title>. This occurs in the index.html. I can't find this coding in the index.php code for my theme Elegant Grunge.

    Thanks again for any help.

  4. Agus Suhanto
    Member
    Posted 4 years ago #

    If you couldn't find it in index.php, try to look for it in functions.php.

  5. billdinardo
    Member
    Posted 4 years ago #

    No luck finding the above code in index.php or functions.php. Is there another fix to this problem? Thank you.

  6. Agus Suhanto
    Member
    Posted 4 years ago #

    Try to look header.php. I found the following code snippet in my GrungeMag theme:

    <title>
    <?php if (is_home()) : ?>
    <?php bloginfo('name'); ?>
    -
    <?php bloginfo('description'); ?>
    <?php else : ?>
    <?php wp_title('', 'false'); ?>
    -
    <?php bloginfo('name'); ?>
    <?php endif; ?>
    </title>
    

    It should print - (dash) character instead of |. But maybe we deal with different Grunge theme here.

  7. billdinardo
    Member
    Posted 4 years ago #

    Hi. I found the following code in header.php. Is one of these vertical bars '|' printing to the left of my site title in the blue tab? Thanks again for your help.

    <title>
    <?php if ( is_home() ) { ?><?php bloginfo('description'); ?> | <?php bloginfo('name'); ?><?php } ?>
    <?php if ( is_search() ) { ?><?php echo $s; ?> | <?php bloginfo('name'); ?><?php } ?>
    <?php if ( is_single() ) { ?><?php wp_title(''); ?> | <?php bloginfo('name'); ?><?php } ?>
    <?php if ( is_page() ) { ?><?php wp_title(''); ?> | <?php bloginfo('name'); ?><?php } ?>
    <?php if ( is_category() ) { ?><?php _e('Archive', 'elegant-grunge') ?> <?php single_cat_title(); ?> | <?php bloginfo('name'); ?><?php } ?>
    <?php if ( is_month() ) { ?><?php _e('Archive', 'elegant-grunge') ?> <?php the_time('F'); ?> | <?php bloginfo('name'); ?><?php } ?>
    <?php if ( is_tag() ) { ?><?php single_tag_title();?> | <?php bloginfo('name'); ?><?php } ?>
    </title>

  8. Agus Suhanto
    Member
    Posted 4 years ago #

    Of course yes. Try to change it with other character and see the effect.

  9. Dale Buchanan
    Member
    Posted 3 years ago #

    I am having same issue but my code is not like that, I see not vertical line in the code

Topic Closed

This topic has been closed to new replies.

About this Topic