Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 0.7.9.3, background, border, css, slim plus
- This topic has 5 replies, 2 voices, and was last updated 12 years, 9 months ago by
Ray Atreides.
-
AuthorPosts
-
10/27/2013 at 12:22 am #272414
Ray Atreides
ParticipantHi Steve,
I wish to add a border & a background color to each of my entries using the Slim Plus Template.
I know the CSS code for this but I cannot figure which element to apply it to to ensure that the border and the background apply to the complete entry.
I have attached a screenshot that shows a entry (not Slim Plus template) but illustrates what I wish to achieve.
Would you please advise which elements in the Slim Plus CSS that I need to target?
Regards,
Ray
Attachments:
You must be logged in to view attached files.10/28/2013 at 12:24 pm #272499Steven Zahm
Keymaster@ Ray
Actually, I do not think it’ll be possible without editing the core PHP file for the template. The reason is the photo and details are floated to render the two column layout. When items are floated, they actually have no height. In this instance the appearance of height come from the float being cleared before the next entry. The border if added would only go around the entry name, rule and detail toggle.
If you’d like to give a try the correct CSS selector would be:
#cn-slim-plus .cn-entry { border: 2px solid red; }10/28/2013 at 12:30 pm #272500Steven Zahm
Keymaster@ Ray
To make the CSS work here’s the edit to the template you would have to make.
Open the
card.phpfile found here:
../wp-content/plugins/slim-plus/Add this:
<div class="cn-clear"></div>
right after the<div class="cn-detail cn-clear cn-show" id="cn-detail-">
which contains thecn-leftandcn-rightdivs.Hope that helps!
10/29/2013 at 12:43 am #272538Ray Atreides
ParticipantHi Steve,
Many thanks for the information.
In your last email you mentioned making a change to the card.php file.
I am happy to do this but I am not sure exactly where to put the code you mentioned?
The closest code snippet that resembles what you suggested is this code…
echo '<div class="cn-detail cn-clear' . $show . '" id="cn-detail-' , $uuid , '">';If this is correct, do I put your code snippet exactly as is or with the echo statement preceeding like this…
echo '<div class="cn-clear"></div>'Does the closing div have to go after the last closing div on line 88?
I do not really know PHP so would it be possible for you to add the snippet in the card.php file for the Slim Plus Template. I am happy to pay you for this.
Would be much appreciated!
Regards,
Ray
10/29/2013 at 11:34 am #272552Steven Zahm
Keymaster@ Ray
Yep, that the correct line. I didn’t have the exact code handy. Use the echo wrapped in single parans.
10/30/2013 at 4:40 am #272631Ray Atreides
ParticipantHi Steve,
Thank you.
I will have a play and let you know how I go with a screenshot of the finished listing layout.
Regards,
Ray
-
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
