• Hi. When I try to add my custom logo to the theme I just get a box with an x in it. It worded the first time I loaded it then when I tried to change it, it no longer loaded. I want to put the logo in the header where it currently only shows the site title.

    web page https://www.tramacgroup.com.au

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The box/x indicates it couldn’t find an image. Try Removing and Adding the logo again

    Thread Starter tramac

    (@tramac)

    I have already tried that several times. I just get a x in a small box. It won’t load.

    This has occasionally happened in the past and we’d never got to the bottom of it. Recently it happened to me on my local install and I tried to track it down.

    This solution may work. No guarantees, but worth a try. Take a backup first.

    – In Appearance > Customize, select “remove” on the logo and the favicon (if “remove” is visible)
    – Exit Appearance > Customize
    – In media library, delete all copies of the logo and the favicon (making sure that you keep a copy on your own computer)
    – Paste the following lines in functions php:

    delete_option( ‘tc_logo_upload’);
    delete_option( ‘tc_logo_resize’);
    delete_option( ‘tc_fav_upload’);

    – Save functions.php
    – Load a page on your site
    Remove the above 3 lines in functions.php (very important: this code only needs to run once)
    – Save functions.php again
    – Goto Appearance > Customize and re-upload the logo and the favicon.

    If you’ve never used a child theme or functions.php, read this article.

    Let us know how you get on.

    Thread Starter tramac

    (@tramac)

    Thanks ElectricFeet. Sadly this didn’t work. Still only get the x in the box where the logo should be. Any other ideas?

    Idea 1. (A wild hunch) Try the above, but with:

    var_dump(delete_option( 'tc_logo_upload'));
    var_dump(delete_option( 'tc_logo_resize'));
    var_dump(delete_option( 'tc_fav_upload'));

    instead of

    delete_option( 'tc_logo_upload');
    delete_option( 'tc_logo_resize');
    delete_option( 'tc_fav_upload');

    Idea 2. Make triple sure all logo files are deleted on the host with FTP and try uploading again.

    Idea 3. Make triple sure all logo files are deleted on the host with FTP, change the name of the logo file and try uploading again.

    Then I’m fresh out of ideas, I’m afraid ??

    Thread Starter tramac

    (@tramac)

    For your information, I finally discovered the problem. I reset my permalinks to the default and everything works fine. The logo, loading PDF’s etc. Thank you for all the help.

    Thanks for letting us know!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Adding custom Logo’ is closed to new replies.