I am setting up custom sidebars for each section of my site and have found the infocus widgets can only be added to one side bar. Is there a work around for this?
Infocus widgets on custom sidebar more than once
(26 posts)
(11 voices)
-
Posted 1 year ago #
-
Hello bsachse,
Currently inFocus isn't setup to do this but I will forward this to the devs and see if we can't get a quick fix going.
Once we know we will get back with you.
Posted 1 year ago # -
Thats great I had the same question, was wanting to add twitter to 2 different sidebars. Cant wait for a fix for this.
Cheers!
Posted 1 year ago # -
Ok you guys can try this.. I haven't tested all of the widgets to see if they work correctly but they appear to be on my XAMPP setup.
1. Create a copy of
/wp-content/themes/infocus/lib/functions/widgets.phpin case something goes wrong.
2. Download the attached file and extract.
3. Move the extracted file 'widgets.php' to/wp-content/themes/infocus/lib/functions/widgets.phpto overwrite the old one.
4. Create some widgets on multiple sidebars.
5. Please test thoroughly.Let me know if this works for you guys.
Posted 1 year ago # -
I also need multi instance widgets... Anyone test the fix, and how did it work out?
Posted 1 year ago # -
Hello GfromKC,
Go ahead and create a copy as I stated above and if it does not work out for you then just copy that file back to revert the changes.
I am very interested to see if this works for you all.
Posted 1 year ago # -
Here is an update.. the contact us widget should work now also. The contact form widget is not meant to be used twice on the same page so it will not supported.
Let me know if it works for you guys.
Posted 1 year ago # -
How do you add another sidebar to the page? Ive tried putting the code into the Custom field section, but that doesnt seem to work.
Thanks!
KristinPosted 1 year ago # -
Hello geekgurl00,
To add a sidebar to your page make sure you are using the default template and then select which sidebar you want in the "Custom Sidebar" option. (see attached image)
If you mean you want to attach two sidebar's to a page then this would require a great deal of customization and would be best to hire a freelancer.
Posted 1 year ago # -
Hi,
I'm using the widgets.php provided, but I can't find the code for webtreats_nospam() function in it. Could you please provide it for me?
I'm trying the following code, but it's not displaying my email correctly (only reversed and with the replaced @ and dot.Thanks.
---
function webtreats_nospam($email, $filterLevel = 'normal')
{
$email = strrev($email);
$email = preg_replace('[\.]', '/', $email, 1);
$email = preg_replace('[@]', '/', $email, 1);if($filterLevel == 'low')
{
$email = strrev($email);
}return $email;
}Posted 1 year ago # -
Hello virtualmente,
That appears to be the correct function. Using this..
<?php echo webtreats_nospam($email_adress_reciever); ?>Does not work for you?
Posted 1 year ago # -
Hi Elliott,
Thanks for the update... I tried the new file, but it's not working correctly. It now lets me use the Contact US widget in multiple sidebars, but it doesn't display the content from the email field (only shows the mail icon). Also, any widget below the Contact Us is no longer displayed.
Posted 1 year ago # -
Sorry about that guys, let me know if this one works for you all. The contact us widget should work now also.
Posted 1 year ago # -
seems to be working, although without the nospam feature :<
thanks!Posted 1 year ago # -
Seems to work OK! I will report back if any issues :)
Posted 1 year ago # -
I still can't get the inFocus - Twitter widget on more than one sidebar - has anyone achieved this? please help.
Posted 1 year ago # -
Hello MiguelGonzalez,
Have you created multiple sidebars and are using the last attached file? Which version of inFocus are you using?
Posted 1 year ago # -
Am using version 1.6 - but am using a child theme of inFocus - would this make a difference? I also uploaded the above widgets.zip php file to the parent inFocus Theme folder. I have a number of differing sidebars, but would like the inFOcus Twitter widget on more than one - frankly it looks awesome and does exactly what i need it to do simply. Thanks.
Posted 1 year ago # -
Try checking to see if it works without the child theme MiguelGonzalez. I can't think of any reason why it would not work..
What plugins are you using?
Posted 1 year ago # -
Hello, I tried to use the new widgets.php, but it doesn't work properly (Twitter stuff).
If the module is not the first module of the sidebar, the "bird" icon appears at the top of the sidebar (it should appear at the top of the module). Also the style of the ul/li looks different from the previous one (an arrow instead of the little baloon)... any help? thank you (and sorry for my bad english).Posted 1 year ago # -
Hello giggi,
Try adding this in your style.css file,
#twitter-widget { position: relative !important; }If that does not fix it then go ahead and send us a link to your site.
Posted 1 year ago # -
Sorry giggi, try this,
.widget { position: relative !important; }Make sure to look around to see if your other widgets display correctly after the change.
Posted 1 year ago # -
Thank you Elliott, that one worked! The bird has returned to its nest lol!
Any idea on how to replace the "ul/li" arrow with the "balloon" one?Really thank you for your help!
Posted 1 year ago # -
Hello giggi,
If I understand right then you want the arrow icon to change to the comment bubble icon in the twitter widget correct?
In this case add this line in your style.css file,
.webtreats_twitter_widget ul li a { url("images/mini_icons.png") no-repeat scroll -140px -117px transparent !important; padding:4px 0 8px 24px !important; }Let us know if that is what you were wanting giggi.
Posted 1 year ago # -
Hi Elliott, the code above didn't worked, but it helped me to solve in tis way:
I commented-out this in style.css (/* ------- 9. Categories, Archives, Etc. ------- */)
/*#secondary .webtreats_twitter_widget ul li a,*/and added this line at the bottom of the code:
#secondary .webtreats_twitter_widget ul li a { background: transparent url("images/mini_icons.png") no-repeat scroll -140px -116px; display:block; padding:4px 0 8px 24px; text-shadow:1px 1px 1px #FFFFFF; }
Thank you again for your precious help!
giggi
Posted 1 year ago # -
Sorry about that giggi, there was a typo in my previous code, it should have looked like this,
.webtreats_twitter_widget ul li a { background: url("images/mini_icons.png") no-repeat scroll -140px -117px transparent !important; padding:4px 0 8px 24px !important; }anyways, glad you got it worked out. If you have any other questions then let us know.
Posted 1 year ago # -
Wow! I love how I found this thread first to solve the multiple widget support problem and then to fix the twitter thing! You guys think in the exact same logical thought progression as I do! Great support :)
Posted 11 months ago # -
Your welcome maniacaldesign, let us know if you have any other questions.
Posted 11 months ago #
Reply
You must log in to post.













