- This topic is empty.
-
AuthorPosts
-
October 24, 2012 at 10:36 pm #40442
ricksmith
ParticipantI am using the socialize plug in to get my social media share buttons running well. Right now the plug in is putting my like like buttons to the right of my mail content area. I would like them to be centered and display above my content area ([like this site](http://michaelhyatt.com/029-7-rules-for-more-effective-slide-presentations-podcast.html “mh”))
[Here’s a link](http://rickwsmith.com/blog/stories-children-down-syndrome/ “Noah’s dad”) to one of my posts so you can see what it’s looking like. Thanks so much!
October 24, 2012 at 11:04 pm #112571AmruthPillai
MemberFirstly, you’ll need to increase the width of your facebook like button since it’s getting cropped.
Change the width from 55px to about 70px, that should do it.
Next, you just need to add a clear tag to your .format-image .entry-content > * tag. So, find this in your style.css file:
.format-image .entry-content > * {
margin-left: 20px;
margin-right: 20px;
}and replace it with this:
.format-image .entry-content > * {
clear: both;
margin-left: 20px;
margin-right: 20px;
}That should make the site look like you want :) Hope I could be of any help!
October 24, 2012 at 11:09 pm #112573ricksmith
ParticipantThanks! So quick question. Do I just enter that in to my child theme css just as you wrote it?
October 24, 2012 at 11:12 pm #112574ricksmith
ParticipantAlso would this move it above the content area (and not in the content area) like the other link I posted?
I was thinking I needed to change around some of the PHP files that. No?
October 24, 2012 at 11:15 pm #112575AmruthPillai
Member@ricksmith I guess you can attach a separate CSS file and copy the edited CSS as well, but to change the width of the FB Like button, you’ll need to edit the socialize.php plugins files.
When you’re working to change the look of a website, all you need is CSS. When you’re looking to change the functionality, then you’ll need to change the PHP/HTML/JS.
October 24, 2012 at 11:17 pm #112577ricksmith
ParticipantThanks. Before when I change around the placement of the meta data, I had to change some theme files. Not sure what that was about.
Quick question, I can’t change the plug in files, there should be a way to just use css to override the plug in css, right?
October 24, 2012 at 11:37 pm #112579AmruthPillai
MemberIf that’s the case, you can use an override!
Just add this to your existing CSS file:
.socialize-in-button > iframe:first-child {
width: 100px !important;
}October 24, 2012 at 11:40 pm #112580ricksmith
ParticipantOk, thanks. But that doesn’t move the entire row of buttons does it?
October 24, 2012 at 11:57 pm #112584AmruthPillai
Memberiframe:first-child
will make the CSS select only the first child of that iframe, so you’re fine! :)
October 25, 2012 at 6:03 pm #112648ricksmith
ParticipantI just put in your css, but as you can see it’s not changing anything. Any thoughts on what I’m doing wrong?
October 25, 2012 at 6:11 pm #112649chrisburton
Participant@ricksmith What browser are you using? If it’s IE, what version?
October 27, 2012 at 11:30 pm #112796ricksmith
Participant@christopherburton – I’m using Chrome and Safari.
October 28, 2012 at 12:51 am #112800antwon
ParticipantAdding something like this to your stylesheet should do it for you:
.socialize-in-content {
background: #efefef;
clear: both;
margin-bottom: 20px;
width: 580px;
}.socialize-in-content > div {
margin: 10px 0 3px 10px;
}October 29, 2012 at 3:58 pm #112877ricksmith
Participant@antwon Thanks so much. That did it. Any thoughts on how to get the spacing in between the various buttons to look right?
November 1, 2012 at 2:28 am #113085JDS
MemberIn this particular case, in the order they are in change the line where you made your first button 100px wide, try 115px and play with it till it looks right… I think that should work here. That should give them better looking spacing.
-
AuthorPosts
- The forum ‘CSS’ is closed to new topics and replies.