Try this Snippet.
Please confirm if it’s OK as not yet been verified in 3.3
Hello,
Thanks for your answer.
I’ve used this one to show text only on the front page : http://presscustomizr.com/snippet/add-content-above-featured-pages/
It’s ok, my text is under the slide 🙂
How can I change its color (or center it) ? In css of my child theme ?
or with some php code ?
Thanks a lot
Need your website link to help
Hi,
I’m very sorry I can’t show my website. A screen will help ?
I’d just want to center this text on the front page. For now, it’s on the left side just under the slide.
I’ve used method 2 of http://presscustomizr.com/snippet/add-content-above-featured-pages/
I’m looking for a little piece of php code that I can add. Is it possible ?
Thanks a lot
Hi,
I’ve looked many topics but I didn’t find a solution to center this few words.
So, is it possible to add a “block” or a div on the front page ? Not only few words as I did but a block (or dic) in which I’ll be able to write 10 lines of text ?
Perhaps it will be easier to center “a block” or “a div” full of text than only few words ?
Anybody has an idea ?
Thanks very much
Here’s a possible solution in CSS.
Add a Text Widget in the Footer (Customise>Widgets) where you can add 11 lines of HTML. Then reposition using:
footer#footer #footer_one p {
position: relative;
top: 0px; /* Adjust */
left: 10%; /* Adjust */
}
Hello,
Thanks for you answer 🙂
I’ve tried this code to place my text below the slide :
footer#footer #footer_one p {
position: absolute;
top: 620px;
/* Adjust */
left: 10%;
/* Adjust */
color: red;
}
This text appears on all the pages of the site and I’d like to have it only on the front page.
Is it possible ? And how can I have it “responsive” ?
Thanks à lot,
Change to .home footer#footer #footer_one p {
The left: 10% needs to be adjusted, but that will help responsiveness positioning. What else are you expecting?
Maybe you need some @media
Thanks. I’s working !
My text is on only the front page : )
So, my css is :
.home footer#footer #footer_one p {
position: absolute;
top: 620px;
left: 10%;
color: red;
}
Is it possible to “adjust” better the postition of this block of text with “relative” (as u said in a post).
If I put :
position: relative;
is it possible to position the text with only % attributes ?
I’ve tried to put :
top:400%
and do tests with another % but it’s not “beautiful” ;).
Indeed with % attributes, I will perhaprs avoid me from doing @media query)?
Thanks again
You can only use % on width (left/right), not height (top/bottom).
Hi,
Thanks for your quick answer.
I don’t understand. You mean that :
I can only use % > left and right position
I can use pixels > top and bottom position
Is it right ?
Thanks again 🙂
That’s correct, eg this code positions the element at it’s base point ie where it would be displayed without repositioning.
.selector {
position: relative; /* or absolute */
top: 0px;
left: 0%
}
Ok. I’ve underdood :). Thanks again for your explanations.