WordPress.org

Ready to get started?Download WordPress

Forums

Asteria Lite
How can you change the header to add a logo (11 posts)

  1. Infoanyonedesign
    Member
    Posted 6 months ago #

    I am using the Asteria lite theme and I do not see where you can change the header from text to a logo for a company. Please advise on how to change this. Thank you.

  2. Taste In London
    Member
    Posted 4 months ago #

    I am having the same issue.

    Could somebody please assist me on this?
    I understand that if I go to appearance>asteria options> basic I could change it, but I only want to add the logo, I don't want to change the rest of the heather.

    Thanks!

  3. despina.mina
    Member
    Posted 4 months ago #

    the same!
    thanks

  4. missmikado
    Member
    Posted 3 months ago #

    same problem!

  5. st.idnacius
    Member
    Posted 3 months ago #

    you simply could do this by adding image url in file head4.php
    e.g.:

    <div class="logo">
    			<?php if ( is_home() ) { ?>
                <h1><a href="<?php echo esc_url( home_url( '/' ) );?>"><img src="YourLogo.jpg" alt="logo"></a></h1>
                <?php }else{ ?>
                <h2><a href="<?php echo esc_url( home_url( '/' ) );?>"><?php bloginfo('name'); ?></a></h2>
                <?php } ?>
        </div>
    	<!--LOGO END-->
  6. missmikado
    Member
    Posted 3 months ago #

    thanks!

  7. st.idnacius
    Member
    Posted 3 months ago #

    replace <?php bloginfo('name'); ?> with your logo/image url in <h2> as well to work in all pages. Should be something like this:

    <h1><a href="<?php echo esc_url( home_url( '/' ) );?>"><img src="YourLogo.jpg" alt="logo"></a></h1>
    <?php }else{ ?>
    <h2><a href="<?php echo esc_url( home_url( '/' ) );?>"><img src="YourLogo.jpg" alt="logo"></a></h2>
    <?php } ?>
  8. KindtrEpreNeur
    Member
    Posted 3 months ago #

    This helps me a lot!

  9. CrouchingBruin
    Member
    Posted 3 months ago #

    Just as a word of caution, do not edit the theme's files directly by going to Appearance > Editor. If there is an update to the theme (which sounds like will be coming soon), you will lose your changes. Yes, you can go back & make your changes again ... if you remember what you did the first time. And then you'll have to make the changes again the next time the theme is updated. Instead, the generally accepted practice is to create a child theme and make your changes to a copy of the file you want to modify.

  10. missmikado
    Member
    Posted 3 months ago #

    Right. But i think the feature of a picture-logo should be embed in the free theme. That is standard in all other themes i know...

  11. Menno1987
    Member
    Posted 2 months ago #

    Cheers st.idnacius! Got it working aswell :"D ... Would be lovely just to be able to upload it directly from the theme options though.

Reply

You must log in to post.

About this Theme

About this Topic