• Resolved robertson.ash

    (@robertsonash)


    Hi there,

    I am hoping to input my logo left of the Title on the main page.

    I’ve tried inputting this code into the custom CSS field, but not change was observed.

    img#site-logo { width: auto; float: left; margin: auto 10px 10px auto; }
    #site-title span { float:left; clear:left; }

    Ideas? Thanks!

Viewing 12 replies - 1 through 12 (of 12 total)
  • I also try to modify css, but without success…
    Finally, i use a old school method with table ?? and add this code:

    <?php
    		do_action( 'catcheverest_before_hgroup_wrap' ); ?>
           <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td><div align="center">
    <img src="https://yourdomain.com/your-logo.jpg" border="0" />
    </div></td>
        <td><div id="hgroup-wrap" class="container" align="center">
    
           		<?php
    			do_action( 'catcheverest_hgroup_wrap' ); ?>
    
            </div></td>
      </tr>
    </table>
        	<!-- #hgroup-wrap -->

    Now have a logo in left, my site name in center and search and social links in right

    Thread Starter robertson.ash

    (@robertsonash)

    I tried adding this code to the custom CSS field but there was no change, however this is php code. Is there an alternative CSS code? Otherwise could you please explain how to add this into the theme code so that I don’t lose it with wordpress updates.

    Thanks!!!!!!

    Hi robertson.ash – I’d suggest you remove all that code above from anywhere you tried it. It’s not CSS and won’t work in the CSS file.

    Instead, try adding this to your custom CSS:

    #hgroup-wrap img {
       margin-top: 50px;
    }
    
    hgroup.with-logo {
        clear: none;
        margin-left: 50px;
    }
    Thread Starter robertson.ash

    (@robertsonash)

    SNAP!!!!!

    AMAZING THANK YOU SOOOOO MUCH!!!!

    LOL – you’re welcome :)! The “magic” tool for CSS work is Firebug (addon for Firefox browser)…

    Thread Starter robertson.ash

    (@robertsonash)

    I have firebug, where can I learn to write code?

    Well, this instance was a bit more tricky than straight Firebug – but you can learn CSS pretty easily – this is a good place to start:

    https://www.w3schools.com/css/default.asp

    I’m sorry that I missed details …
    The table code I added to header.php

    What size should i make my logo title?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try something with a height of 135px.

    Because I made it at 150×78 and all it shows is the Center but not the whole logo! What Do i do?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Add logo next to title’ is closed to new replies.