I have installed "share this" to my blog and when the I click the facebook like button only a part of it shows up on screen. How do I fix this? - facebook

I emailed support and they replied by saying to add this code to my css.
**span.st_fblike_hcount span div.fb-like span iframe#f249dba5d33c086.fb_ltr
{
height: 234px !important;
max-width: 634% !important;
}**
I am new to programming and do not know where exactly I should add this code. Can some one please instruct me on how to correct this problem.
My url My Blog
Thanks

It looks as though you need to go into the plugin folder and modify the CSS file. In the sharthis folder is a file called sharthis.css
Open the file in a text editor and add the following code that they gave you.
span.st_fblike_hcount span div.fb-like span iframe#f249dba5d33c086.fb_ltr
{
height: 234px !important;
max-width: 634% !important;
}
Save and refresh the page and it should work

Related

Unity UI Toolkit - Background image

I was learning the new UI toolkit. I'm trying to add an image to a visual element.
I added an image and saved it. After reopening it, nothing appeared like I didn't add anything.
What can it be about?
SS of it
same here, I could overcome the problem by adding the bg image via an txt editor program.
such as
style="width: 60px; height: 60px; padding-right: 10px; background-image: url('project://database/Assets/Images/xxx.png');"
I have no idea why they didn't fix such an obvious issue yet.

webview background-color doesn't seem to expand to cover entire view

I have a webview that is picking up the background color in a css:
body {
color: var(--vscode-editor-foreground);
background-color: var(--vscode-editor-background);
}
Unfortunately, for "short" web pages, it's not expanding to cover the entire view port.
Is there something I can do to the html I'm including in the webview to expand it to fill the space? This obviously only happens on darker themes and light themes work fine - and doesn't happen with larger html files.
Turns out it was just another minor stylesheet issue:
html, body {
width: 100%;
height: 100%;
}
That fixed it right up. Thank you Mosh Feu for the answer.

Difficult to increase the profile text in Moodle

I'm having trouble finding which file to change the css in Moodle tool. In pagia the "view profile", the data is cut by "..." I would vizualisar throughout.
Follow the link to the image:
https://www.dropbox.com/s/ewzdf4mj4vwfmcc/sesi.JPG
Right click on it and press the INSPECT BUTTON in Chrome. You will see a panel that says wich file is the one been used.
In moodle, There is chance to come mostly css from selected theme.
If the css is not coming from selected theme then it may from standard theme or from particular module.
The css is put into one large file for performance. To switch this off, add this line to config.php
$CFG->themedesignermode = true;
Remove the line or set it to false after you have finished because it will make the site verrrry slow...
http://docs.moodle.org/dev/Creating_a_theme#Theme_designer_mode
Refresh the profile page and now you can use inspect element in Chrome, it should show the original css file.
It seems to be this file /theme/canvas/style/core.css
Around lines 288 to 296 (In Moodle 2.5.4)
.userprofile dl dt {
padding-left: 0;
font-weight: bold;
display: inline-block;
padding-right: 2%;
min-width: 100px;
width: 15%;
clear: both;
}
So edit this file in your theme
/theme/yourthemename/style/core.css
And add this to override the default min-width.
.userprofile dl dt {
min-width: 120px;
}
Refresh the profile page and it should display okay. 120px seems to be minimum for "Endereço de email" to be displayed in full.
Don't forget to remove this or set it to false after you have finished - config.php
$CFG->themedesignermode = false;

Fancybox 2 - Include a new Div into Image?

How can I insert a new div (not in .js) into fancybox (when fancybox - image is open)? Like this:
I'm also try to make a div css to fit that description :)) still with no avail. I suck at css styling, will get back on this one when i figured it out. my theory is that it should be a div within a div within the div if you get what i mean :))
!!!!!!!!
UPDATE I tried messing around the css and this is what i got (I'm using 1.3.4v for simplicity's sake in my part) and for reference, these images and codes I used are found in the 1.3.4 demo packege from fancybox.net
If I didn't explain my code well, it just means I'm still working on it so I just hope you get why it is vague, but the point is it's doable and you only need to work out the css file. I hope someone has a nicer looking code
Output:
1.I all of these from jquery.fancybox-1.3.4.css
just change these 1 2 3 and mess around with example7 there in the demo
#fancybox-outer {
position: relative;
width: 100%;
height: 100%;
background: #fff;
padding-right:50%; /*this part extends the right side of the photo so it would look like thet're on the same page*/
}
2.This re-positions the original title to the upper right part of the image
.fancybox-title-inside {
padding-bottom: 10px;
text-align: left;
color: #333;
position: absolute;
top:0;
left:65%;
border:1px solid black;/*for you to see how large the div is*/
height:100%;
}
3.My new RED div where I will be
div.fancycontent{ /*saviour do word wrap here*/
border:1px solid black;
padding:2px;
color: #333;
background: #FF0000;
width:50%;
height: 100px;
}
I tried using fancybox in one of my projects but had to revert back to implementing my own popup's using the DIV elements. Its pretty easy to create your own popups instead of using fancybox or facebox if you know a bit of JQuery try to have a look at these links. You can customize your div tags to contain what ever you need.
output
source
In your fancybox JS, set the type to iframe:
$(document).ready(function() {
$('.callout').fancybox({
type: 'iframe',
width: '640px',
height: '480px',
});
});
Then you can open up anything you want in the fancybox by simply applying the class to your link:
<a class="callout" href="{path}">{link}</a>
If you have issues with the iframe display, you might try adding a secondary class to tell fancybox what type of content you are linking to (this is a new convention introduced in the latest version, so I don't know if I'd recommend using it by default):
<a class="callout callout.iframe" href="{path}">{link}</a>
Hope that helps!
ty
It just happened that I created this fancybox "a la" facebook demo that looks pretty much like what you want:
http://picssel.com/playground/jquery/fancyboxALAfacebook_26Mar12.html

Facebook "Like" popup appears behind sidebar on Wordpress site

Just finished installing G+, Facebook Like and Tweet buttons onto my site (www.biginjapan.co) on each individual post. My issue though is that when you press the FB Like button the popup box opens up so you can share the article if desired, but part of it appears behind the sidebar. It looks like this:
Picture showing my problem
Am not sure if you'll need any code to advise me here, but if you do please let me know. All I want to do is make the Facebook popup appear above the sidebar so you can view it properly.
In your content div
#content {
overflow: hidden;
float: left;
width: 619px;
padding: 0pt 15px;
}
Remove overflow hidden.
Remove the line overflow: hidden for #content. it's on line 247.
It is layer issue. It can be handle by z-index. For the slider layer (content), use lower z-index means
.slider{ z-index: -1; }
For the popup layer (content ) use higher z-index than slider
.popup{ z-index: 123; }