I’ve done website building and programming before, so I’m familiar with html, css, and php to a certain extent. However, I’m quite new to wordpress, and so far I’ve mostly just been working with the Gutenberg page builder and the Twenty Twenty Three theme. I’ve managed to figure out how to write custom CSS if I need to in order to customize my pages. But now that I’m trying to polish the buttons to other blogs, I am required to implement some custom HTML and/or php. I can’t seem to be able to square the provided information with the actual implementation of my website.
I’ve found this webpage that explains the next\_post\_link function: [https://developer.wordpress.org/reference/functions/next\_post\_link/]) and ChatGPT gave me this code `<?php previous_post_link(‘%link’, ‘Previous Post’, true); ?> <?php next_post_link(‘%link’, ‘Next Post’, true); ?> \“ and said to either put it in functions.php or single.php (since this is for my single page template). But browsing through the theme files of Twenty Twenty Three, I don’t see any of these files and creating them and adding the lines to it doesn’t seem to do the job either.
From what I understand, WordPress seems to be undergoing some changes in regards to its page builders. I guess that as a result of this, some information is outdated and/or new information still needs to be provided. I’m working with the vanilla page builder and theme and would like to only install plugins when I really need their functionality. So I’d like to be able to find out how/where to customize the php for my site in that way.
I also read some stuff about using a child theme in order to make changes to my theme and keeping these when the main theme updates. I am not sure if this is too off-topic in relation to my other question. I haven’t made a child theme (yet) as I initially wasn’t aware of this. Is this a huge risk with the default themes? As I do end up straying a bit from the default design that they present with the website I’m working on.
[ad_2]