Forum Replies Created

Viewing 15 replies - 1 through 15 (of 22 total)
  • Thread Starter dsb01

    (@dsb01)

    Thank you for your reply! Was just about to post back when I saw it…

    Yes, it is related to the theme, but not the fault of the developer, it’s a result of my own customizations which I had overlooked!

    I had the idea to “wrap” my entire WP site with a changing background, depending on which pages are visited. It’s probably rather unconventional (or at least I’ve done it in an unconventional way)… in order to do this, I added html and head tags to my theme’s index.php and page.php files, so that I could then add “site-content” and “site-wrapper” divs BEFORE the <?php get_header(); ?> function, thus wrapping the entire site.

    I can only assume I must have tried just adding the divs and it didn’t work… my memory fails me..
    I’ve obviously pasted the head info from somewhere as I seem to also have <?php wp-head()?> within my <head> section – without being entirely sure what it’s doing there!

    Anyway, having added a head section to the template php in question it now works as I hoped.

    Apologies for being a self-confessed tinkerer, but maybe the info here will be of some help to someone down the line ??

    Thread Starter dsb01

    (@dsb01)

    Thank you for an excellent reply, that clarifies things. As it turns out, I found a work-around by modifying my js script to a page-load event trigger instead of a click event.

    I briefly had a moment of panic when I realized my script fires from scratch on each page load, until I discovered I can pass variables in and out of sessionStorage – gotta love JS!

    So far all is working well, but I appreciate what you’re saying about a starter theme – I made a start with that using Bones theme a while back, but progress was rather slow! Similarly, I made a start creating a block theme from scratch until the block/JSON grammar started to bog me down… one day I’d like to get back to these things – so cheers for the reminder ??

    Thread Starter dsb01

    (@dsb01)

    Regarding the plugin.. silly me again!

    Seriously Simple Podcasting plugin adds “podcast” to Post Type, so in addition to Pages and Posts, you get a Podcast type of post in wp-admin dashboard. This DOES create a “category” for podcasts in the sense that podcasts are now addressable at <<yoursite>>/podcast. However, “podcast” does not show up as a category alongside other blog categories – that’s just the way it works. So, to add a navigation link to podcast episodes, you have to add a custom link to <<site>>/podcast rather than choose from blog categories.

    Hope this helps anyone who’s as confused as I was!

    Thread Starter dsb01

    (@dsb01)

    Not a problem with the plugin.. or any plugins.

    Silly me, I hadn’t enabled rewrite module on apache2!

    sudo a2enmod rewrite
    sudo service apache2 restart

    Simple as that, now the categories work fine whichever permalink structure I choose.

    Still have the problem with SS Podcasting plugin though… it’s supposed to add a “podcast” category to the blog, but for some reason that category isn’t showing. I’m sure I’ll get to the bottom of it eventually!

    Thread Starter dsb01

    (@dsb01)

    PS, my base theme (although much modified) is quite old so maybe I need something in my functions.php that isn’t covered by the ‘svg support’ plugin?

    Thread Starter dsb01

    (@dsb01)

    spot the obvious typo: “seaarch” !!

    Having corrected that, everything works as it should.

    Thread Starter dsb01

    (@dsb01)

    Side note: as a matter of fact, I can actually drag a search block onto the content area in the editor – that works fine.

    So.. this isn’t a support question as such since everything works and I wouldn’t normally be putting a search box into content using markup…

    Still, it’s more of a question to help my understanding – why is it that, when I put <– search/ –> into html it works under tt2 theme, but doesn’t work under my basic tutorial theme?

    Thread Starter dsb01

    (@dsb01)

    As so often happens, I’ve found the answer just after posting this!

    it’s in brilliant article: https://fullsiteediting.com/lessons/theme-json-layout-and-spacing-options/#h-how-to-set-content-width-using-theme-json

    Basically just added "margin": true, "padding": true

    under settings: { spacing: {

    in theme.json

    Easy when you know how! ??

    • This reply was modified 2 years, 7 months ago by dsb01.
    Thread Starter dsb01

    (@dsb01)

    Brilliant – thanks for the info.

    Pretty good approach to fluid text here: https://richtabor.com/fluid-type-scale-theme-json/ – I have yet to try it out fully…

    regarding the values in “custom–typography”, I’ve managed to figure out that the “gigantic” size is set for post-title, which is where I will concentrate my attention since that’s where I have a problem – post titles tend to split words over two lines if they are long in anything less than 400px. Mind you, SEO tends to frown upon any words longer than 3 syllables so should probably avoid “long” words in titles anyway!

    Thanks also for the child-theme plugin link – I usually try to avoid plugins wherever possible but in this case looks like a handy tool for getting the job done without fuss!

    Thread Starter dsb01

    (@dsb01)

    by “theme editor” are you referring to the Full Site Editor under Appearance > Editor?

    yes… I’m getting a feel for it now though, it’s more like editing the whole site as if it were a post rather than the old style of site customization using the customizer where it shows a “live view” as you edit.

    • This reply was modified 2 years, 8 months ago by dsb01.
    Thread Starter dsb01

    (@dsb01)

    Thank you!!

    Thread Starter dsb01

    (@dsb01)

    i understand a bit more now… it’s mostly in theme.json ! very new to block themes, but it’s starting to make sense.

    Thread Starter dsb01

    (@dsb01)

    ignore previous comments, maybe just an odd glitch… all custom css entries now appear to be live-updating in view.

    I have another problem though:

    have made some changes to blocks, addressing the container class through custom css via …/wp-admin/customize.php

    They are background-image urls for specific blocks on the page, which I’ve added to pre-existing classes, rather than creating custom classes, for example:

    .wp-container-8{background-image: url(‘https://test/wp-content/uploads/2022/07/Background-Image.webp&#8217;);}

    Interestingly, the background image shows up in the live view at customize.php and also in the live view of the site, but DOESN’T show in the theme editor.

    Is there any way to link these css customizations back to the editor?

    Thread Starter dsb01

    (@dsb01)

    apologies – just noticed it doesn’t “live” update in the custom CSS editing view like I’m used to with other themes…

    Seems I have to “publish” then refresh page.

    ..Shame that’s not mentioned in the tutorial!

    • This reply was modified 2 years, 8 months ago by dsb01.
    Thread Starter dsb01

    (@dsb01)

    update – doesn’t seem to be a permission issue, did chown -R to user for my website folder and chmod -R 770 just be sure and still same problem.

Viewing 15 replies - 1 through 15 (of 22 total)