Logo on homepage

I would like to integrate the name of my company with the logo so I would need a bigger logo on homepage. How can I do this?


  • Hi vernon
    Thanks for contacting to us.

    If you want to the bigger logo then we have to customize the code. For this Download, code snippet plugin install and activate https://wordpress.org/plugins/code-snippets/ . And kindly paste the below code in code snippet plugin like the screenshot https://prnt.sc/vh62vo

    function webriti_customlogo() {
         add_theme_support( 'custom-logo', array(
    'height'      => 100,
    'width'       => 500,
    'flex-height' => true,
    'header-text' => array( 'site-title', 'site-description' ),
    ) );
    add_action( 'after_setup_theme', 'webriti_customlogo', 11 );

    You can change the logo height and width as your need.

    After this kindly again upload the logo.

    Let me know did it work.


  • Thank you very much for your quick response. It looks very promising but I don't have the option 'edit snippets' on my dashbord. I see 'edit code' in Snippets-Settings. Should I go that way?
  • Hi
    Yes , Should use that way.
    Let me know for any confusion.
  • I get
    Cannot redeclare function webriti_customlogo. Error on line 2.
  • HI 
    To edit the snippet you have created click on the edit button.
    See the snapshot https://prnt.sc/vhqxel
  • I had already done that and the edit snippets options is already on the dashboard. So I added the code you gave me and WP tells me there is an error on line 2.
  • On top of Edit the Snippet, there is a message
    The snippet has been disactivated because there is an error on line 2
    Cannot redeclare function webriti_customlogo.
    I was told that the fonction is not well declared in the thème or we can't declare again a function with the same name.

  • Akhilesh,
    I got your e-mail. You are right. The problem has been resolved. Thank you
  • edited November 18
    Glade to know that its resolve, closing this ticket.
This discussion has been closed.