So, I would like to make a heading with some words highlighted by a different color. I think this makes your heading stand out much better! But I can’t seem to figure out how to do it or if it is even possible. On Gutenverse’s homepage, they use a picture where they have it exactly like that, which makes me think it should be possible. Let me know how I could do so, or maybe with HTML.
so the last solution will involve coding and you need to edit some inner code from the theme.
first, go to the admin page and then select Tools > Theme File Editor, and look for function.php. and then add this code before the ::instance() of the theme.
add the file to the assets/js. you can use the file manager for your site like cpanel or ftp to copy the file to the js directory. the folder structure should be app>public>wp-content>themes>[theme name]>assets>js
Note: though I assure you I do not have any malicious intent, if you do not have any experience with code, be careful adding custom code to your site. you can copy the code to chat GPT and ask what is the purpose of that code to make sure it wont cause any harm to your site.
This reply was modified 4 months, 3 weeks ago by gowinda.
This is all new for me, and step 1 I did manage, but step 2… I can’t figure out how to add a new file to paste the code in. My host provider suggested I download FileZilla, but I still can’t figure it out. Please check my screenshots for reference. If you could elaborate on how to add that new file exactly, that would be amazing!
in your case, the public folder should be httpdocs. just follow it from there wp-content>themes>[theme name]>assets>js. fins the folder called js and upload your file there. (i think you can just drag and drop the file to the folder destination)
This reply was modified 4 months, 3 weeks ago by gowinda.
Great, that fixed it! But it doesn’t say ‘highlight’ how it is supposed to, but I got the tool ‘Text Color,’ which is fine. This was a challenging fix, so I appreciate your time and effort to help me!
I am glad it works, the name difference was intentional. Maybe future updates of wordpress would fix the problem so to prevent confusion and some unwanted conflict I give it a custom name and format type.
if you have any more questions, please do not hesitate to ask here ??
I was working on a new post again when I noticed the ‘Text Color’ option was gone again. How could this happen, and how do I fix it again? I have updated the theme so that you know.
just so you know, updating themes in wordpress would reset all the files of that theme. so, the changes you made before probably also reset. you need to do it all again, unfortunately.