• I’m using a child theme of the WordPress Explore theme, and I can’t get the comic navigation or widget areas to appear. I’m pretty sure I’m not adding the ” <?php do_action(‘comic-area’); ?> ” to the right place in the theme files, but even after trying a few different things I can’t get anything to change.

    I don’t have a lot of expertise when it comes to PHP or the like, so any advice on this situation would be greatly appreciated. Thanks very much!

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

Viewing 4 replies - 1 through 4 (of 4 total)
  • I’m not even sure of what I’m looking at. I’ve hit F12 on your site and gone through the code that offered – and I can’t even find the comic area tags. It’s possible that what we’re seeing on the page isn’t the ocmic at all but the accompanying blog post with its featured image. This could mean that you’ve placed it in the wrong spot as you’ve assumed, or in the wrong template, or maybe I’m just overlooking the code.

    Since the widgets aren’t showing either, let’s start with that. To test if there’s a connection, remove the comic area code from the template and see if they return. If they don’t, you have two problems. If they do, we’ll need to find a new spot for the code.

    • This reply was modified 6 years, 5 months ago by MaxVaehling.

    Looking into it some more, there seems to be a code oddity that’s not CE-related but may actually help figure stuff out. The ‘primary’ tag seems to encompass the left widget and the main area but not the right widget. It should just be the main area, the closing </div> should be before the ‘tertiary’ tag. (I swapped them in the F12 code but it didn’t fix the problem. Just though you’d like to know.)

    Thread Starter Shattered King

    (@shattered-king)

    Thanks very much for taking a look! The regular widget areas are there, I’ve just got them empty to get the look I want. It’s specifically the comic area widget areas (above comic, below comic, etc.) that aren’t showing up.

    I think you’re right about it only appearing as the featured image, though I haven’t any idea how to fix that. I’ve tried the comic-area code in a few places, but nothing’s worked yet.

    Would it help if I pasted some of the single and index php? I’m sorry to say I haven’t much idea what I’m looking at.

    Oh, I thought you said something about the widgets not showing in the first post. I may have read that wrong. You meant the Comic Easel widget areas?

    You basically have the right idea about trying different spots to place the code. Judging by where the featured image is now, I’m guessing you want it somehere there? Then I suggest either within the <div> with the id “primary” or right below (id=”content”). If index.php doesn’t work, you might also just try single.php or vice versa. I can’t direct you any better without knowing how your theme is built, though.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Comic Navigation and Widget Areas Not Appearing’ is closed to new replies.