how do i add a picture as my blog title

Asked on August 16, 2016 in How To.

how can i add a picture to use as my blog title?  Basically like adding the signature at the bottom of each post, but i want it as my title, and to show automatically on every page.
thanks!

mamasmun Layers User
Reply
  • Possible Answers to Your Question:

  • 1 Answer(s)
    Answered on August 22, 2016.

    Hi there,

    Under Appearance> Customize, expand the Site Settings and there you can add a custom logo using a graphic image which will appear in the header of every page. If you are referring to a title banner above all posts, you need a child theme that adds a custom title to that view. If you are comfortable with coding, you can put together a basic child theme with just a style.css and functions.php as outlined here (sections 1-4)

    https://docs.layerswp.com/theming/

    And use the layers_after_header hook to include the title banner:

    https://docs.layerswp.com/reference/layers_after_header/

    Example:

     
    add_action('layers_after_header', 'my_post_titles');
    if(! function_exists('my_post_titles') ) {
    function my_post_titles() {
       
    if(is_single()){
        get_template_part( 'partials/header' , 'page-title' );
    }
    }
    
     

     

    Reference:
    https://docs.layerswp.com/layers-framework-title-banner/

    To make it graphical, you would use CSS to add a background image (if desired) and set the font to whatever you want. If you are looking to show a literal signature that does not use a font, you would set that as the title banner background image. Make sure the signature is 320px wide or less or it will get cut off on mobiles.

    Reply