WordPress.org

Ready to get started?Download WordPress

Forums

raindrops
[resolved] How to place logo in the header as well as Twitter and Pintertest Google+ (3 posts)

  1. SureAqua
    Member
    Posted 4 months ago #

    Hi,

    I would like to place my logo on the header where the current site name is. How can I do this with out loosing the site name.

    I have place this code in the title, but it repeats itself.

    }
    #top #site-title{
    background:url(http://personalsurvivor.com/wp-content/uploads/2014/04/PS-Logo-60.jpg);
    width:604px;/* logo width */
    height:60px;/* logo height */
    }

    In addition I would like to place the a couple of links in the title area, in particular, Twitter, YouTube and Gooogle+.

    Can you please advise

    thanks Robert

  2. nobita
    Member
    Theme Author

    Posted 4 months ago #

    You should create Child Theme

    Copy header.php from Raindrops to Child Theme

    and customize,

    from

    <?php
    /**
     * Conditional Switch html headding element
     *
     * example
     *  raindrops_site_title( " add some text" );
     *
     */
    		echo raindrops_site_title( );

    to

    <?php
    /**
     * Conditional Switch html headding element
     *
     * example
     *  raindrops_site_title( " add some text" );
     *
     */
    		echo raindrops_site_title( );
    ?>
    <a href="http://example.com"><img src="http://example.com/images/twitter.png" width="50" /></a>
    <!-- your html -->
    <?php

    The creation method of a Child Theme

    Child theme name:mysite

    Creation of - theme holder
    wp-content/themes/mysite
    Creation of - stylesheet

    style.css is created in the
    wp-content/themes/mysite/style.css
    The contents are as follows.
    Creation of a style sheet
    style.css

    /*
    Theme Name: mysite
    Author: Your name
    Author URI: http://yoursite.com
    Version: 0.1
    Template:raindrops
    */

    Usually, when making a child theme, it is explained that the style of a parent theme is imported as follows, but in rained Rops, it is unnecessary.
    the child theme is detected and it imports automatically.

    /* Raindrops No need import rules like below*/
    @import url('../twentyten/style.css');

    make file functions.php
    ver1.200 ~

    <?php
    
    add_action( 'switch_theme', 'puddle_uninstall' );
    
    function puddle_uninstall(){
    
        delete_option("raindrops_theme_settings");
    }
    ?>

    This description is intended to use in a child theme, and change settings of Raindrops, if you uninstall, delete the configuration changes of the parent theme.
    If you did not delete, you may be when you install the new Raindrops, correct, it is not displayed by default.

    Finish.

  3. nobita
    Member
    Theme Author

    Posted 4 months ago #


  4. nobita
    Member
    Theme Author

    Posted 4 months ago #


  5. nobita
    Member
    Theme Author

    Posted 4 months ago #

    It was after about two weeks, and then change the resolved because there is no answer, especially

Reply

You must log in to post.

About this Theme

About this Topic