WordPress.org

Ready to get started?Download WordPress

Forums

How to remove default settings - Themia Lite (7 posts)

  1. Super Saturday
    Member
    Posted 2 years ago #

    Hi,
    I am using Themia Lite theme and there is a place to upload a logo on the left corner. Since I don't want any, I don't upload any in the them options but the Themia logo is set by default. Does someone know what I mean and how I can get rid of it.

    Thank you!

  2. Gary Darling
    Member
    Posted 2 years ago #

    In header.php, line 69, this line sets your logo image:

    <div class="logo">
        <a href="<?php echo home_url(); ?>">
        <img src="<?php if ( inkthemes_get_option('inkthemes_logo') !='' ) {?>
    <?php echo inkthemes_get_option('inkthemes_logo'); ?>
    <?php } else {?>
    <?php echo get_template_directory_uri(); ?>/images/logo.png<?php }?>" alt="<?php bloginfo('name'); ?>" />
    </a>
    </div>

    It looks like you can get rid of the else construct, which installs a default image named logo.png if none is declared in the theme options. If you don't intend to ever use a logo you can delete the div and all the code inside it.

  3. Super Saturday
    Member
    Posted 2 years ago #

    Thank you Gary!
    Can I delete it directly in the editor?
    Or what will be a purpose of a child theme for deletions like this?

    Thank you!

  4. Super Saturday
    Member
    Posted 2 years ago #

    Hi,
    When I delete the line in the editor, it works!
    However, if I want a logo at the top (which I have downloaded one from the theme option), Themia Lite sets an image in the middle of my homepage (its a gift with a blue background, saying Make a difference). Can I get rid of that or even better, can I change it for a textbox?

    Thanks!

  5. Gary Darling
    Member
    Posted 2 years ago #

    You can copy header.php (and any other page, post, or template file) into your child theme, if it exists WordPress will use it instead of the same-named file in the parent theme. That way the originl stays untouched, and you can always refer back to it if you break something.

    In the file front-page.php, around line 29 is a section that inserts that gift box image:

    <div id="main" class="container">
       <?php if (inkthemes_get_option('inkthemes_featureimg') != '') { ?>
       <img src="<?php echo inkthemes_get_option('inkthemes_featureimg'); ?>"/>
       <?php } else { ?>
       <img src="<?php echo get_template_directory_uri(); ?>/images/slideimg.jpg"/>
       <?php } ?>

    It looks as though you can select your own image in theme options, so play around with that until you get it right.

  6. pamr
    Member
    Posted 2 years ago #

    I tried messing around with that automatic Themia logo, but then those default buttons shifted to the left, almost in the middle of the page ("Home" and "Sample Page"). How can I delete the logo and keep the buttons where they are?

  7. ldare2000
    Member
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic