-
AuthorPosts
-
June 10, 2016 at 3:01 pm #646227
Hi,
I’d like to use an image to divide the different posts on the blog overview page. Which files do I need to edit to do this?
Link in private section.
Thanks!
June 10, 2016 at 4:30 pm #646265Hey Daniel,
Thank you for the clear explanation of what you want to achieve, I like the colors on the site you have used.
below is the CSS code to add bottom border for the posts please replace the image with your own :)
.post-entry.post-entry-type-standard.single-small.post.type-post.status-publish.format-standard { background: url('https://markinns.com/archive/images/pencil-straight-line.png') repeat-x; background-position: bottom center; }
Best regards,
VinayJune 10, 2016 at 7:33 pm #646312Hey Vinay,
Thanks for the kind words :)
I’ve added a code block to the general blog page but this doesn’t have any effect (which kinda makes sense since the CSS is not applied to some section or div. Where should I put it?
Thanks!
June 10, 2016 at 8:25 pm #646329Hi,
It should look like the screenshot below. Please replace the image URL and try adding this code to your child themes style.css file which can be accessed via Appearance > Editor
If you still have any issue Please post us your login credentials (in the “private data” field), so we can take a look at your backend.
Login credentials include:
- The URL to the login screen.
- A valid username (with full administration capabilities).
- As well as a password for that username.
- permission to deactivate plugins if necessary.
Best regards,
VinayJune 10, 2016 at 8:32 pm #646332Hi Vinay,
We’re almost there! The divider image is now on top of the posts, they must be at the bottom. And after the last blog post there must be no image.
June 10, 2016 at 9:28 pm #646357Hi,
The reason it appears on top is because the code is missing “background-position: bottom center;”
For more info please check https://css-tricks.com/almanac/properties/b/background-position/To hide the background on last item Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:
.content article.post-entry:nth-child(3) { background: none!important; }
Best regards,
VinayJune 10, 2016 at 10:08 pm #646379Thanks for your quick help Vinay, it works now!
June 10, 2016 at 10:22 pm #646391Hey!
That’s looking really nice now :)
Don’t forget rate our theme if you have not on themeforest.
Thank you for using Enfold!Regards,
Vinay- This reply was modified 8 years, 6 months ago by Vinay.
-
AuthorPosts
- The topic ‘Add image between blog posts’ is closed to new replies.