New Front EN › Support Forums › Origami Theme Support › Page h1 cuts off at the right side
- This topic has 7 replies, 2 voices, and was last updated 12 years ago by
satori.
-
AuthorPosts
-
March 27, 2013 at 10:49 am #1126
speaktodave
ParticipantHi Andrew,
There is a padding or margin issue with the theme that means long page h1s are cut off at the right hand side on both mobile and web.
March 27, 2013 at 7:57 pm #1130satori
KeymasterDear Dave,
thank you for noticing this, and my apologies for the bug! Indeed, on smaller screens long page headings get cropped on the right; to fix this, please go to “Appearance -> Editor” and inside the file that opens (style.css) locate (ctrl+f) the line which says:
.page h1 {
float: left;
width: 100%;
}
It should be number 606; erase the part which says “width: 100%;” and hit “Update file”.I must note that I was not able to reproduce the same bug on a normal-sized laptop screen, could you please provide the URL of the page in question so that I could look at the code?
Sincerely,
Andrew | Satori StudioMarch 28, 2013 at 12:13 am #1132speaktodave
ParticipantHi Andrew,
I tried the suggested fix but it didn’t seem to fix the bug.
My laptop is HD / 1920 x 1080 and I see the issue when I write a long heading. I first noticed it on mobile but replicated it on larger screens and also replicated it on the themeforest.net demo by using chrome: inspect element to edit the heading text length just to check I hadn’t messed up the css on my install.
I’m testing it just now on a spare domain
David
March 28, 2013 at 9:26 am #1133satori
KeymasterDear David,
I can see from the code that the line I mentioned is still there :) Let’s do it this way: please download this fixed style.css from my repository, unzip it, and re-upload via ftp into the theme folder (/wp-content/themes/Origami/).
Let me know if this works!
Sincerely,
Andrew | Satori StudioMarch 28, 2013 at 9:37 am #1134speaktodave
ParticipantHi Andrew,
It didn’t help so I put it back in.
When I removed it the h1 no longer filled the length of the content div. It shortened the background colour to the length of the text.
March 28, 2013 at 9:47 am #1135satori
KeymasterStupid me! Please remove all declarations from the “.page h1” part (i.e. both the float and the width).
Sincerely,
Andrew | Satori StudioMarch 28, 2013 at 11:55 am #1136speaktodave
ParticipantRemoved both float and width so it now just an empty .page h1 and that did the job.
Thanks Andrew!
-
This reply was modified 12 years ago by
speaktodave.
March 29, 2013 at 1:18 pm #1140satori
KeymasterGreat to hear!
Should you have other questions or face issues, do not hesitate to contact me, will be glad to help!
Best,
A. -
This reply was modified 12 years ago by
-
AuthorPosts
- You must be logged in to reply to this topic.