WordPress.org

Ready to get started?Download WordPress

Forums

[Theme: Diginews} Replacing a header with image (7 posts)

  1. holygrenade
    Member
    Posted 1 year ago #

    I have my logo uploaded as an image in my Library, but I need to replace the font I have with the image. Here's the code:

    <!DOCTYPE html>
    <html <?php language_attributes(); ?>>
    <head>
    <meta charset="<?php bloginfo( 'charset' ); ?>" />
    <meta name="viewport" content="width=device-width" />
    <title><?php wp_title('|', true, 'left'); ?></title>
    <link rel="profile" href="http://gmpg.org/xfn/11" />
    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    
    <?php wp_head(); ?>
    </head>
    
    <body <?php body_class(); ?>>
    <div id="container">
    <?php do_action( 'before' ); ?>
    	<header id="branding" role="banner">
          <div id="inner-header" class="clearfix">
    		<hgroup id="site-heading">
    			<h1 id="site-title"><a>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    			<h2 id="site-description"><?php bloginfo( 'description' ); ?></h2>
    		</hgroup>
    
    		<nav id="access" role="navigation">
    			<h1 class="assistive-text section-heading"><?php _e( 'Main menu', 'diginews' ); ?></h1>
    			<div class="skip-link screen-reader-text"><a href="#content">"><?php _e( 'Skip to content', 'diginews' ); ?></a></div>
    			<?php diginews_main_nav(); // Adjust using Menus in WordPress Admin ?>
    			<?php get_search_form(); ?>
    		</nav><!-- #access -->
    
          </div>
    
    	</header><!-- #branding -->

    [Use the Code buttons please]

    What would I replace with the logo URL?

  2. browndst
    Member
    Posted 1 year ago #

    in the stylesheets part of the editor at the very beginning, you'll have to scroll a little, but you should find where it allows for font size and font style to be hard-coded in. hope this helps. I just happened upon it when I was trying to do some customizations.

  3. holygrenade
    Member
    Posted 1 year ago #

    Like this?

    #container, .wrap {
    width: 96%;
    margin: 30px auto;
    padding: 0;
    max-width: 1044px; /* remove or edit to adjust width */
    background: #fff;
    border: 1px solid #c7c8ca;
    box-shadow: 0 0 3px #ddd;
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 16px;

    What would I replace?

  4. holygrenade
    Member
    Posted 1 year ago #

    header[role=banner] {
    position: relative;
    background: url(http://holygrenade.com/?attachment_id=1660) repeat-x;
    }

    #site-heading {
    min-height: 60px;
    padding-top: 20px;
    padding-left: 30px;
    margin-bottom: 15px;
    }

    #site-title {
    margin-bottom: 2px;
    margin-right: 300px;
    font-family: 'Old Standard TT', Georgia, "Times New Roman", Times, serif;
    font-weight: 700;
    font-size: 55px;
    line-height: 1em;
    text-transform: uppercase;
    }

    #site-title a {
    color: #000;
    text-decoration: none;
    }

    #site-description {
    font-size: 14px;
    margin-right: 300px;
    color: #000;
    font-family: 'Old Standard TT', Georgia, "Times New Roman", Times, serif;
    font-weight: 400;
    text-transform: uppercase;

    I guess that's right after all. What would I change to make my blog title an image?

  5. browndst
    Member
    Posted 1 year ago #

    if your theme allows for that customization then you would go to theme under appearance and click on theme options, and there's a place for upload custom image. if it's not there, your theme doesn't allow that type of customization. I'm using Gamepress theme, and it allows fo rit.

  6. holygrenade
    Member
    Posted 1 year ago #

    There's no way I can code it in? Seriously?

  7. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    Yes, there are other ways to add anything you want. But you will need to create a Child Theme before making those kinds of changes:

    http://codex.wordpress.org/Child_Themes

    Also, please see this before posting any more code here:

    http://codex.wordpress.org/Forum_Welcome#Posting_Code

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.