• Resolved unklee

    (@unklee)


    I am trialling this theme with the intention of using it for my blog, and so far I’m loving the simplicity. Thanks.

    I have used your child theme files to create a child theme to make a few style changes, and I have a couple of questions please.

    1. I have set up the Archives page, which then places a footer on each page and post, and I wanted to add a menu to the footer. I followed what I thought were the right steps:

    • set up secondary navigation in the child theme functions.php file – this seems to work;
    • <?php wp_nav_menu( array( 'theme_location' => 'secondary' ) ); ?> in the child theme footer.php file

    Yet nothing appears. Are you able to tell me what I’m missing please?

    2. I notice the functions.php file has code where it says “Displays the navigation to next/previous set of posts, when applicable.” But I can’t see anywhere to make those links appear. What am I missing?

    I hope it’s OK to ask you these things. Thanks.

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter unklee

    (@unklee)

    It seems I have stumbled across the solution to the footer issue, though I am not knowledgable enough about WordPress to understand. But by deleting the footer link to the Archive in the index.php file, and replacing it with a simple get_template_part( 'footer' ) I get what I want.

    But that only opens up another question, because the footer file that you have set up contains the code <?php get_sidebar( 'main' ); ?> with the note “Grabs the Main sidebar widget  – whatever you have added in the “widgets” area will display here.” and that gives me a search box, and a bunch of other links.

    I’m sorry but I don’t understand this at all as there are no widgets and I certainly haven’t consciously added anything.

    You have clearly done some very clever and efficient coding in this theme, with a number of features that are not immediately apparent. I’m hoping you might be able to explain to very amateur coder what is going on here please.

    Thanks.

    Thread Starter unklee

    (@unklee)

    I think I have worked it out for myself, sorry to have bothered you. The sidebar is default WordPress and contains the search box etc. I don’t know why your original code stopped the default sidebar in the footer, but it doesn’t really matter now.

    Thanks so much for this theme, I am loving it (and WordPress). I have added a few things I want (search box, footer menu, post meta and a bunch of plugins) and I still get a very fast rating on Google Page Speed Insights.

    Thread Starter unklee

    (@unklee)

    I have another issue which I don’t seem to be able to resolve. It is simply the setting of 640px for the featured image.

    I want to use 720 px because all my existing graphics are that width, so I have made appropriate changes in the child theme functions.php and style.php, but while the body width and the width of images within the post change, nothing makes any difference to the featured image.

    Can you tell me, please, how the 640 setting is made?

    Thanks.

    Theme Author DannyCooper

    (@dannycooper)

    The featured image width is set in functions.php. If you have overwritten that value you may need to regenerate thumbnails.

    https://en-gb.ww.wp.xz.cn/plugins/regenerate-thumbnails/

    Thread Starter unklee

    (@unklee)

    Thanks for your reply. But “640” only appears twice in your functions.php file, to set image size, and I altered that in the child theme to 720. But still the featured image was 640 px wide. I can’t understand how it could come out at 640px when I had replaced all references to 640 in the main theme.

    Theme Author DannyCooper

    (@dannycooper)

    Did you try regenerating thumbnails as I suggested above?

    Thread Starter unklee

    (@unklee)

    No I haven’t yet. My latest question was trying to understand rather than just follow instructions. But I do appreciate your advice, and will be doing it.

    (I have been trailling Arke on a dummy site, but when I set it up on my actual site I will then regenrate thumbnails if necessary. Thanks.)

    Theme Author DannyCooper

    (@dannycooper)

    WordPress generates the thumbnails when you upload the image. So if you change the image size after that the images need to be re-generated.

    https://www.wpbeginner.com/plugins/regenerate-thumbnails-new-image-sizes-wordpress/

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

The topic ‘Child theme’ is closed to new replies.