Infocus widgets on custom sidebar more than once

resolved (26 posts) (11 voices)

  1. bsachse
    Member

    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?

    Posted 1 year ago #
  2. Elliott
    Support

    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 #
  3. johnnyharu
    Member

    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 #
  4. Elliott
    Support

    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.php in 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.php to overwrite the old one.
    4. Create some widgets on multiple sidebars.
    5. Please test thoroughly.

    Let me know if this works for you guys.

    Attachments

    1. infocus-multiple-widgets.zip (5.1 KB, 26 downloads) 1 year old
    Posted 1 year ago #
  5. GfromKC
    Member

    I also need multi instance widgets... Anyone test the fix, and how did it work out?

    Posted 1 year ago #
  6. Elliott
    Support

    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 #
  7. Elliott
    Support

    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.

    Attachments

    1. widgets.zip (5 KB, 8 downloads) 1 year old
    Posted 1 year ago #
  8. geekgurl00
    Member

    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!
    Kristin

    Posted 1 year ago #
  9. Elliott
    Support

    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.

    Attachments

    1. 1.jpg (14.7 KB, 0 downloads) 1 year old
    Posted 1 year ago #
  10. Anonymous
    Unregistered

    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 #
  11. Elliott
    Support

    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 #
  12. littlepoppich
    Member

    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 #
  13. Elliott
    Support

    Sorry about that guys, let me know if this one works for you all. The contact us widget should work now also.

    Attachments

    1. widgets.zip (5 KB, 43 downloads) 1 year old
    Posted 1 year ago #
  14. Anonymous
    Unregistered

    seems to be working, although without the nospam feature :<
    thanks!

    Posted 1 year ago #
  15. mcdoopy
    Member

    Seems to work OK! I will report back if any issues :)

    Posted 1 year ago #
  16. MiguelGonzalez
    Member

    I still can't get the inFocus - Twitter widget on more than one sidebar - has anyone achieved this? please help.

    Posted 1 year ago #
  17. Elliott
    Support

    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 #
  18. MiguelGonzalez
    Member

    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 #
  19. Elliott
    Support

    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 #
  20. 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 #
  21. Elliott
    Support

    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 #
  22. Elliott
    Support

    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 #
  23. 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 #
  24. Elliott
    Support

    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 #
  25. 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 #
  26. Elliott
    Support

    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 #
  27. maniacaldesign
    Member

    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 #
  28. Elliott
    Support

    Your welcome maniacaldesign, let us know if you have any other questions.

    Posted 11 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme