• Hey,

    I just want to add a simple gallery block to my gallery page. I can add the pictures, they will show up on back-end, but theres nothing on the front-end of my page. When i change my theme to wordpress original (twentynineteen etc.), then i can see the pictures on my front-end. I already checked the main thing – plugins and wp_head() & wp_footer(), they are fine. I created the theme by myself and i have no ideas anymore. I think something is missing in my theme that will read that i added pictures in gallery.

Viewing 2 replies - 1 through 2 (of 2 total)
  • No, the theme does not need anything special for the gallery block or the gallery shortcode to work. But it also should not have CSS that hides things.
    You should probably enable DEBUG mode, and use your Developer Tools in the browser to determine if the images are being output at all or are hidden.

    make sure to have wp_head() and wp_footer() in the right places, and use the_content() in your loops …

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Gallery not working with custom theme’ is closed to new replies.