Forum
Need coding help.
I want to remove the background color and shadow from the small icons on the page listed below. https://www.williamsburgmemorialpark.com/about/post.php?s=2014-10-01-memorial-restoration
There’s some Perch CSS code (blog.css) that’s causing this, but I can’t remove it entirely because I need that code to add this style to the larger photos I import through the Perch desktop. As you’ll see, the class Perch is using is .hentry.
Is there anywhere in here that I can add some CSS styling to counter the effects of the .hentry style on the icons?
Kelly, Here is the best way to solve the problem. In the template that handles these images add class="xbs" to <img /> tag then add the following to your .css
That will fix the issue.
Robert Ketter
Thanks Robert. Unfortunately I'm still learning to code, so I could really use some helping placing the class. Keep in mind that I ONLY need to modify the icons on the site listed above, not the larger photo. I realize that I'll need to update the blog.css as well. Here's my modified post.html template code, which is what I believe is used with the Blog app to add posts.
Kelly, This is the updated blog.css All I did was add the code I suggested above so there is no way it will modify anything... till you add the following...
New CSS (blog.css)
The template you posted is the right template for for posts but it does not contain the image tag which needs new class added. The (5) images which need the new tag are in the textarea (editor) when you are logged into perch. There by default it likely looks like a mini word processor. There should be a button in the editor that says 'View Html' If you do this you will find each of the (5) images. Just add the class="xbs" to each image before the src=..
before
after
Then do the happy dance. If you just cant work this out, setup an editor role and send login to robert (at) ketter (dot) us and I will do this for you FREE.
BTW, I am just north of you in Wild and Wonderful West Virginia, 20 minutes from Winchester.
RK
Awesome! Thanks Robert.
I'll be a little further north this weekend when I visit my kids at JMU. :)
Robert, for some reason I can't get this to work. I was able to remove the background and drop shadow by styling the image from within the Perch Blog code, but I'd prefer to use a class instead. As you'll see, the first icon uses your code, the others are styled within the Blog code. What am I doing wrong?
https://www.williamsburgmemorialpark.com/about/post.php?s=2014-10-01-memorial-restoration
Go to this blog.css which is in
https://www.williamsburgmemorialpark.com/css/blog.css
Starting on line #61
Find the following...
and add the following below it...
so when your finished it will look like this...
save and your done...
of course you will still need the....
on the images you dont want box-shading. (which is right on the first image)
That's still not working.
That worked perfectly. Thanks!
I'm glad we got it, could you please choose one of the answers to close this ticket... :)
Done. Thanks again. :)