• Hello! I apologize if I’m not posting this issue at the correct location.

    My issue: After adding a logo to a custom ‘from scratch’ theme, I can’t access the GRID layout page of the Image Library–the list page works fine.
    What is causing (or affecting) it: Not sure this is the CAUSE, but I can fix it by commenting out the: “if function exits…” code for the custom logo. But then my logo disappears from the page.

    WP Install: v6.5 as LOCALHOST
    Server: XAMPP on Windows 10

    I’m new to WordPress (only using it for a few months), but I’ve build several website with another app, so I know enough about codding to be dangerous ?? I’ve been building a custom ‘from scratch’ theme following the Mr. Digital tutorials (been all the way thru his 2019 series). I haven’t had any issues with the custom code, until I tried to add the custom logo. Mr Digital didn’t show how to do that, but I figured it out from the WP.org support pages.
    After adding the custom logo code, then choosing the logo through the dashboard, the logo was placed top left above the header bar. So I thought all was good. But then I noticed when I tried later to access the Library GRID layout page, it would freeze–just a little gray icon ball with the circling white dot next to ‘bulk select’ button. If I click the LIST layout icon, the images come up just fine.
    Researching the issue, I found a few instances stating there was a glitch that caused it in a previous version, but that was a few years ago. So I wanted to look into that before I started suspecting it was due to my code. I also see you like to have access to the WEBSITE so you can VIEW the CODE. But how do you do that with a localhost setup? I can give you a screenshot of the affected (logo) code, if that will help.

    I followed all the suggestions: cleared the CACHE, checked PERMALINK settings, and tried disabling plugins. I only had two plugins installed (Imagemagick Engine and Force Regenerate Thumbnails). I turned them off, but it didn’t help. The only thing that fixes it is disabling the code mentioned earlier.

    If there’s any other information I can offer, please let me know. Hope you can help.

    Thanks…JEB

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator t-p

    (@t-p)

    custom ‘from scratch’ theme

    Is this a block theme?
    If so, try reviewing https://www.ads-software.com/documentation/article/site-logo-block/

    I’m afraid without a link or at least the complete code of your custom theme it’s hard to help you. You are welcome to make the theme available on github, for example, so that people can take a look at it.

    Thread Starter chugbug

    (@chugbug)

    No t-p, not a block theme. Started out with a ‘blank slate’ and created everything–created the files, then added the code. The ‘theme’ is pretty basic, just a top bar, menu, logo, and footer menu. So there’s not even a lot of code. And most of that was just to add the functionalities into WP (to make the functions visible in the dashboard).

    Guess I’ll have to work around it. I was just hoping it might have been a common issue with a simple fix.

    Thanks…JEB

    Thread Starter chugbug

    (@chugbug)

    If this helps narrow it down… I also found that when I activate the logo (by uncommenting the ‘functions exist’ code), I also get a REST API error in the Health Status panel.

    I’ll look into whether I can upload a copy of the theme to github for review.

    Thanks…JEB

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘LIbrary GRID layout won’t load after adding custom logo code’ is closed to new replies.