Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#25 2012-07-30 10:48:33
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: something wrong in my menu and homepage
uli wrote:
Isn’t your problem about CSS? Then we’d also need the stylesheet.
I think there’s enough room for improvement in the HTML alone:
No HTML element, div inside a span, opened ul that never gets closed, opened p that gets closed by another opening p etc. Try to fix these before.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#26 2012-07-30 11:05:41
- alarius
- Member
- Registered: 2009-05-28
- Posts: 45
Re: something wrong in my menu and homepage
ok thankyou Uli for the suggestion to the code display.
after this, suggesting me to post the stylesheet make me look at it deeply, and I see there was a command on the left side menu that calls font-weight:bold
;
so I tried to put on the footer font-weight:normal
and now the problem is solved!
the strange thing is only IE has the problem, and only when the menu gave back the coategory list…
but now works!| thankyou Uli and Colak, have a nice day!
Edit: thankyou Uli for the last suggestion (I did’n see it because I was writing), I’ll take a look on the page section to solve that items
Last edited by alarius (2012-07-30 11:10:06)
Offline
#27 2012-07-30 11:32:06
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: something wrong in my menu and homepage
alarius wrote:
the strange thing is only IE has the problem, and only when the menu gave back the coategory list…
This here surely isn’t a case to look closer at any browser issues. By not writing valid HTML you have “outfoxed” ;) IE, but it might have been any other browser.
But you’ve also really different code in the relevant parts of your samples.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#28 2012-07-30 12:00:08
- alarius
- Member
- Registered: 2009-05-28
- Posts: 45
Re: something wrong in my menu and homepage
So, I’m not sure I understood, I’m looking at the code but the html page is gave out from textpattern, so I don’t understand what and where I have to correct it. (I’m not good on html and ccs, and TXP too, I go ahed by trying to understand step by step) On the category list, for example, i have on my sidebar menu this form
<p>
<txp:category_list parent="articles" exclude="articles" />
<br><p>
<txp:link_to_home>Homepage</txp:link_to_home>
<br><p>
and on the page I have:
<div id="contentarea">
<txp:if_category name="news">
<p>HERE IS A LIST OF WHAT HAPPENED</p>
</txp:if_category>
<txp:if_category>
<h3><txp:category title="1" /></h3>
<txp:article form="article_listing" limit="500" />
<div class="hfeed">
<txp:if_category name="sport">
<txp:category_list parent="sport" exclude="sport" />
</txp:if_category>
</div>
<txp:else />
<txp:article limit=1 />
</txp:if_individual_article>
</div>
and all this give on the content area
<div id="contentarea">
<p>HERE IS A LIST OF WHAT HAPPENED</p>
<h3>news</h3>
<ul class="directory">
<h4>
<li>
<span class="entry-title">
<a rel="bookmark" href="http://localhost/textpattern-4.4.1/index.php?id=2">blabla02
</a>
<li>
<span class="entry-title">
<a rel="bookmark" href="http://localhost/textpattern-4.4.1/index.php?id=3">blabla01
</a>
<div class="hfeed">
</div>
</div>
so the span command is gave out by txp
Offline
#29 2012-07-30 12:05:37
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: something wrong in my menu and homepage
It’s hard to tell from outside (by us/me) what code output comes from where. But let’s look only at the first code block. There you have 3 p
tags, none of them closing. You always need even numbers of each them.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#30 2012-07-30 12:12:01
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: something wrong in my menu and homepage
Block 2:
You open 3 if_category tags, but only close 2.
You close 1 if_individual_article tag without opening it.
Maybe you have the oversight of all your forms and pages and open/close them all correctly in other forms you didn’t post here. But chances are you’ll get as much confused as I am.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#31 2012-07-30 12:15:28
- alarius
- Member
- Registered: 2009-05-28
- Posts: 45
Re: something wrong in my menu and homepage
right, I correct it!
Probably I have to study a little bit more on HTML… so I link myself to http://www.w3schools.com/
thankyou again!
Offline
#32 2012-07-30 12:29:39
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,315
Re: something wrong in my menu and homepage
You’re welcome!
Keep in mind also, that TXP tags might produce default tag output (have a look at the Tag Reference and its tag pages. E.g. the article tags both output br
s for break tags).
Also: Textile (article output) influences your code, too.
so the span command is gave out by txp
May be true. But the responsibility to deliver valid code is still on the web developer.
Last edited by uli (2012-07-30 12:30:45)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline