tkmets5
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to have page-{slug} files work with any themeI’m starting to think if I’m developing the theme for a client and I’ll likely maintain the site that having it work on any theme is not necessary. I don’t really want something I developed that isn’t meant for reproduction to be placed into another theme.
Forum: Fixing WordPress
In reply to: How to have page-{slug} files work with any themeThanks for the links…I feel like this would have been something done more often, but search results show me otherwise. I’ll give those a look to see if I can implement into my theme. Thanks
Forum: Developing with WordPress
In reply to: Custom queries using wp_query for custom post typesI think I was trying to do more than was necessary. I ended up just creating a plugin for the new post type then a custom post type archive file to display the posts how I wanted them. As I learn more about theme development I’m understanding how to let WordPress work for me more often. Thank you.
- This reply was modified 4 years, 9 months ago by tkmets5.
Forum: Fixing WordPress
In reply to: Unused classes remain in body_class()yeah it is…I tried everything, I even tried removing the body_class and adding it back.
I guess I’ll keep digging around, I appreciate the help.Forum: Fixing WordPress
In reply to: Unused classes remain in body_class()I tried the switch and back but still the same. Thanks for the tip on that plugin…it’s perfect. My loop on page.php is pulling in content-page….but that shouldn’t make the output in body_class show page-template? Should it? It’s having no affect on my site other than triggering my ocd.
Forum: Fixing WordPress
In reply to: Unused classes remain in body_class()https://3c4cabd28e18.ngrok.io/
All 3 pages were originally set up as page templates. I changed home to page-home and the other 2 pages are just going off of page.php.
<body class="page-template page-template-template-work page-template-template-work-php page page-id-8">
Thanks for the help…
Forum: Fixing WordPress
In reply to: Gutenberg Code editorThanks, I’ll take a look.
Forum: Fixing WordPress
In reply to: Custom theme buildThat’s what I was thinking. Thank you for for the reply.
Forum: Plugins
In reply to: [Ask Question] Building custom themeYes I see that I posted this in wrong place. Can’t delete it.
I think I probably actually trying to make something a widget area that maybe shouldn’t.
Sorry….I was trying to say I am wanting to eliminate the front-page.php altogether. So I would create a new page via the editor for example and set it as home via settings>reading. I would like to create a new page template to assign to the new home page. I have a widget area to be placed in the middle of the page. I understand I should place as much of the content inside the page via the editor. But confused as to best way to get that widget area where it needs to be.
@joyously I have a quick question I’m stumped on in regards to my home page. As you suggested I should get the content of front-page into the editor. I have registered a sidebar for a widget area in the middle of my front-page.php file and it’s working perfectly now…. I’m guessing I need to set up a new page template to handle this home page. If I’m right, how do I handle the widget area? I’m sure I’m not asking this clearly but I’m stumped. Any suggestions would be greatly appreciated. Thank you
@joyously Thanks for that. That’s clicking for me the way you described it. Wasn’t thinking about the switching themes part.
@joyously thanks for your reply! So adding pages via the dashboard and adding the html via custom html blocks is an acceptable way to build out? I can also do the same for the home page and eliminate front-page.php.
I’m on the cusp of understanding all of this and really appreciate your reply.
@jnashhawkins i don’t think I broke anything yet. It’s completely custom following along with a really good tutorial. Some of the php file structures came from underscores. So I don’t think I need a child theme here as I started from scratch. Thanks for your help!