Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Sidebars & Widgets (http://forum.bytesforall.com/forumdisplay.php?f=14)
-   -   [SOLVED] Text Widget keeps dissapearing... (http://forum.bytesforall.com/showthread.php?t=3006)

russab Aug 17, 2009 01:11 AM

[SOLVED] Text Widget keeps dissapearing...
 
Sorry if this is a stupid Q..:confused:

I added several text widgets containgin html code (eg. the Google adsense code) to the left and right sidebar and all was well...then suddenly they all dissapear not only from the site bit even from the widget editor within the admin function .... having reinstated them all labriously several times I feel like I am going mad...

Any ideas what is happening?


Also are you meant to enclose any html code you put in these text widgets within <html> </html> or something likie that?

juggledad Aug 17, 2009 08:00 AM

What version of WP and Atahualpa?
What is the URL?
Have you checked your site's error.log for any errors?

russab Aug 17, 2009 11:12 AM

I am using
WP 2.8.4
Atahualpa 3.4.1

URL = www.altendorff.co.uk

I have got widgets loaded - again - and running - but I am hesitant to add another because it is at this point that they all dissapear...

I have 5 text widgets in the right sidebar - is there a limit ?

Many thanks

juggledad Aug 17, 2009 04:08 PM

No, the only limit is the page size.
Try adding the textwidget in with just some text ie no code or html. Does it showup?

russab Aug 19, 2009 03:16 AM

If I add a normal text widget (no code) all is fine.

Also as you can see at www.altendorff.co.uk I have 7 text widgets containgin code working fine.

The effect of deleting all text widgets on both sidebars - while leaving all other widgets working and the site itself working in all other respects can be created by adding the following code in a text widget.

----------------------------
<html>
<!-- Begin - Language -->

<a href="http://www.google.com/translate?u=http%3A%2F%2Fwww.altendorff.co.uk/index.php&amp;langpair=en%7Cfr&amp;hl=en&amp;ie=UT F8" title="Français" rel="alternate">Français</a>

<a href="http://www.google.com/translate?u=http%3A%2F%2Fwww.altendorff.co.uk/index.php&amp;langpair=en%7Ces&amp;hl=en&amp;ie=UT F8" title="Español" rel="alternate">Español</a>

<a href="http://www.google.com/translate?u=http%3A%2F%2Fwww.altendorff.co.uk/index.php&amp;langpair=en%7Cit&amp;hl=en&amp;ie=UT F8" title="Italiano" rel="alternate">Italiano</a>

<a href="http://www.google.com/translate?u=http%3A%2F%2Fwww.altendorff.co.uk/index.php&amp;langpair=en%7Cde&amp;hl=en&amp;ie=UT F8" title="Deutsch" rel="alternate">Deutsch</a>

<a href="http://www.google.com/translate?u=http%3A%2F%2Fwww.altendorff.co.uk/index.php&amp;langpair=en%7Cja&amp;hl=en&amp;ie=UT F8" title="日本語" rel="alternate">日本語</a>

<a href="http://www.google.com/translate?u=http%3A%2F%2Fwww.altendorff.co.uk/index.php&amp;langpair=en%7Ccn&amp;hl=en&amp;ie=UT F8" title="简体��文" rel="alternate">简体中文</a>

<a href="http://www.google.com/translate?u=http%3A%2F%2Fwww.altendorff.co.uk/index.php&amp;langpair=en%7Cru&amp;hl=en&amp;ie=UT F8" title="Российская" rel="alternate">Российская</a>

<li>
<a target="_blank" title="Mitch Ratcliffe" href="http://blogs.zdnet.com/Ratcliffe/?p=223">
Engarble!?</a>
</li>
</html>
---------------------------------


Can you divine why this is happening?


I have a feeling I am heading for the idiot of the day award :-)

juggledad Aug 19, 2009 03:48 AM

First off, remove the <html> </html> from each of the textwidgers. there should only be one <html> </html> in a document, you are only adding an HTML snippet to the text widget, not a whole page.

Second, your latest code is mostly <a.....>'s but then you throw in a <li> at the end, BUT this is not in a list! You need to ad an <ul> or <ol> arrount the <li>

russab Aug 20, 2009 12:36 PM

Oops quite right

I have removed <html> and </html> from all text widgets
I have added <ul> </ul> around bullet point list.

I then added the text widget code shown above *without the <html> etc) and voila

...all text widgets are deleted as if by magic....:-(

juggledad Aug 20, 2009 04:57 PM

noticing that that code contains several foreign languages, what happens if you put this code in and remove one of the other text widgets. Does it work or not?

I wonder if some of the foreign characters is causing the problem. You could you try adding one or two lines and don't use any 'odd' characters and see what happens.

russab Aug 21, 2009 11:16 AM

Hello J

I have done as you suggested and taken out the Japanese etc characters...now look at the top of my right hand sidebar - it works! www.altendorff.co.uk

So, it is something to do with the special foreign characters...this is odd because I used this exact code on my blog with a previous theme and it worked fine for years...this behaviour has only started to happen with the Atahualpa theme...

Its not the end of the world....I can leave out the other translations...but it is a mystery n'est ce pas?

R

juggledad Aug 21, 2009 01:57 PM

you have an <li> with out the <ol> or <ul> again

russab Aug 22, 2009 01:56 AM

Yep, your right:-(

Text widget that works is:
==========================================
<!-- Begin - Language -->

<a href="http://www.google.com/translate?u=http%3A%2F%2Fwww.altendorff.co.uk/index.php&amp;langpair=en%7Cfr&amp;hl=en&amp;ie=UT F8" title="Français" rel="alternate">Français</a>

<a href="http://www.google.com/translate?u=http%3A%2F%2Fwww.altendorff.co.uk/index.php&amp;langpair=en%7Ces&amp;hl=en&amp;ie=UT F8" title="Español" rel="alternate">Español</a>

<a href="http://www.google.com/translate?u=http%3A%2F%2Fwww.altendorff.co.uk/index.php&amp;langpair=en%7Cit&amp;hl=en&amp;ie=UT F8" title="Italiano" rel="alternate">Italiano</a>

<a href="http://www.google.com/translate?u=http%3A%2F%2Fwww.altendorff.co.uk/index.php&amp;langpair=en%7Cde&amp;hl=en&amp;ie=UT F8" title="Deutsch" rel="alternate">Deutsch</a>

<ul><li>
<a target="_blank" title="Mitch Ratcliffe" href="http://blogs.zdnet.com/Ratcliffe/?p=223">
Engarble!?</a>
</li></ul>
==========================================

But by adding the following all text widgets get deleted :

==========================================

<a href="http://www.google.com/translate?u=http%3A%2F%2Fwww.altendorff.co.uk/index.php&amp;langpair=en%7Ccn&amp;hl=en&amp;ie=UT F8" title="简体��文" rel="alternate">简体中文</a>

<a href="http://www.google.com/translate?u=http%3A%2F%2Fwww.altendorff.co.uk/index.php&amp;langpair=en%7Cru&amp;hl=en&amp;ie=UT F8" title="Российская" rel="alternate">Российская</a>

==========================================

Anyway, I am leaving it at that because I simple cant keep re-inserting 15 widgets... I need to actually spend time on content now :-)

Thank you very much for helping and guiding - I will be a donor:-)

Russab


All times are GMT -6. The time now is 08:28 AM.

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