Home › Forums › Arnold WordPress Theme › How to center H1 in post page ? – Arnold Theme
- This topic has 8 replies, 2 voices, and was last updated 5 years, 9 months ago by
RobinLas.
-
AuthorPosts
-
August 4, 2020 at 7:31 am #22157
Hi team,
I’d like to center my Title and text in my post pages but I don’t find how to do it.
I tried to add a CSS like this :h1 {
text-align: center;
}But it’s not real in the center of the page.
How can I do it please ?
Thank you 🙂
Robin.August 5, 2020 at 2:50 am #22168Hi,
I don’t know what’s page template you mentioned.
Could you please leave the post page URL? I will check if it is possible.
Thanks! 🙂Regards!
SeaTheme – SeaTheme.net – Twitter – Facebook
August 19, 2020 at 12:40 pm #22290Hi @seatheme !
This kind of page : http://robinetnaim.com/index.php/2020/08/01/cdiscount20ans/
ThanksAugust 19, 2020 at 1:56 pm #22293Please paste the custom CSS code to “Appearance > Customize: Additional CSS”
@media (min-width: 768px) { .gallery-post-des { display: block; } .gallery-post-des .title-wrap { display: block; width: 100%; text-align: center; } }Best
August 19, 2020 at 2:38 pm #22294Thanks, it’s works.
But, it’s only the title. Can we do the same for the text inside the project ?Thanks so much!
August 20, 2020 at 12:28 am #22299Please add the custom CSS:
.gallery-post-des { text-align: center; } @media (min-width: 768px) { .gallery-post-des .gallery-post-des-inn { display: block; width: 100%; } }August 20, 2020 at 6:57 am #22301For both (title and text) is that CSS ?
Because the text in the post in still not centered :/
Thank you so much@media (min-width: 768px) {
.gallery-post-des {
display: block;
}
.gallery-post-des .title-wrap {
display: block;
width: 100%;
text-align: center;
}
}
.gallery-post-des {
text-align: center;
}
@media (min-width: 768px) {
.gallery-post-des .gallery-post-des-inn {
display: block;
width: 100%;
}
}August 21, 2020 at 1:56 am #22305Sorry, missed some CSS.
Please add the custom CSS also:.list-layout-text { text-align: center; }Please don’t remove other CSS.
Best
August 21, 2020 at 9:29 am #22307Thanks ! It works 🙂
-
AuthorPosts
- You must be logged in to reply to this topic.
