help editing wordpress theme
Hi, unfortunately I dont know much about css.
I hope someone here can help me real quick with a minor problem I have.
I use a theme for my first wordpress blog and wanted to adjust 2 things there, which needs some css experience.
This is what the website looks like:
https://i.redd.it/j3igtdjt0j531.png
I basically want the logo 1 to be bigger and the whole header 2 to be more narrow and placed a little further to the top of the website.
Also how can I make the title of the pages to be displayed on the left inside the header instead of the right where it says "lexikon" now for example.
These are like the final touches my websites needs regarding the design.
I hope someone is willing to help me real quick spotting the code I need to edit to achieve this. :)
here is the css code:
Posted Jun 20, 2019, 3:13 PM UTC
first off, personally, i wouldn't edit the theme files unless you cant override the css. within "customize site" is there not a tab that says additional css? if so, that's where I would place your changes. that's just me. the logo should be fixed with a float: right; the easiest way to locate it is through developer tools(F12) right click the element and inspect. find the ID preferably like #whateverTheIdIs {float: right;} the cool thing with dev tools is you can see your changes in a live env without having to reload.
edit: float: left;
edit 2: float: left !important;
hi, thank you so much for your help.
Yes there is an option to override css.
I already thought about hitting F12 and finding the elements but it doesnt give me anything usefull.
The whole code I can see when I press F12 is this:
https://ibb.co/cxR5FL9
So I still dont know where to float: left;
https://ibb.co/z2Ftrcq
browsers act different, i use chrome. then click the elements tab (at top) then hover through the elements and it should highlight which ones they correspond with. it should also tell you the name of the element. Doing this is much safer than editing source.
right click "Lexicon" and select "inspect"
this kind of introduces you to how to use dev tools
https://www.youtube.com/watch?v=q3mWDijP_8w
it sounds complicated, but it's pretty straightforward.
this is a great reference site
https://www.w3schools.com/css/default.asp
when in doubt, google it.
Ok thank you.
https://ibb.co/6DdddZr
So this is it now.
I tried messing around by increasing the width and height pixels to make the logo at the top bigger but nothing happened.
I'm also not sure where to put float: left; in there. It tried it in the <img .........> part but also no success....
Aside from inspecting the code, you need to understand how to find “hooks”...something you can grab onto and style.
When inspecting, there are two panes, one for HTML and the other for CSS. When you select elements in the HTML, you’ll notice the corresponding CSS appears.
Then using the existing hook, write a new rule.