Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   Social Media Icons display (http://forum.bytesforall.com/showthread.php?t=20806)

Suzetta Aug 21, 2013 03:44 PM

Social Media Icons display
 
1 Attachment(s)
I am trying to get the icons displayed from a PHP plugin/widget to go horizontally not vertically. I located a similar Q&A, changed the css for the widget from float:none to

.scfw img {
display:inline !important;

And the icons still show horizontally. Am I changing the code correctly? Am I changing the code in the right location?

Thanks!

Site is www.forever-faithful.com

lmilesw Aug 21, 2013 05:22 PM

I don't see a class of scfw in the code. I see a class of cf

juggledad Aug 21, 2013 06:07 PM

the image you show is displaying invalid CSS - where did you get that from?
looks like you coded something impropely at the end of the widgets.css file in the options.

Suzetta Aug 21, 2013 06:57 PM

I went to Montezumu options, css files, widgets.css. Located and changed. I only made the changed based on another thread regarding the same issue.

juggledad Aug 21, 2013 07:04 PM

But you put a CSS selector inside a CSS rule which is invalid and can cause other CSS to be ignored.

Suzetta Aug 21, 2013 07:07 PM

Okay. Where do I make the change to the css?

lmilesw Aug 21, 2013 07:43 PM

Regardless it seems like the CSS should be
HTML Code:

.cf img {
display:inline !important;
}

Instead of
HTML Code:

.scfw img {
display:inline !important;
}

And you may not need the !important

Where did .scfw come from?

CrouchingBruin Aug 21, 2013 10:10 PM

OK, I found the thread that you were referring to, Suzetta, and while the general principals apply, the specifics are slightly different because you aren't using the same plugin as the other poster, and therefore the .scfw selector isn't the one that you should use. You should really understand how CSS selectors work, and then learn how to use a web developer tool like Firebug so you can correctly target your CSS.

This should work. Put it at the end of your various.css file and remove what you put in widgets.css because, as JuggleDad indicated, it has probably screwed up the rest of your site. In fact, something is definitely screwed up, because I currently see your footer at the bottom of your sidebar instead of at the bottom of the page.

Code:

#execphp-7 .execphpwidget a img {
  display: inline;
}

Note: I believe cf is the clearfix class and is a little too broad to use when targeting just this specific widget.

lmilesw Aug 22, 2013 06:34 AM

Thanks for catching that about the cf class CB.

Suzetta Aug 23, 2013 09:24 AM

Thank you for the links and the help!!!!!! :)


All times are GMT -6. The time now is 12:55 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.