• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

Top menu

W

Webbuilder

Guest
Hi,

Im working on a website for a customer. The template I made works perfect. I only have some problems with the TopMenu. It always shows it vertical, I tried some changes on the SeperatorTemplate and ItemTemplate. It also did not find any solution in the SDK. Some help would be really appreciated!


It Looks like this now:
Code:
<SiteBuilder:SiteMenu>
  <HeaderTemplate>
    <table width="132" height="62" border="0" cellspacing="0" cellpadding="0">
  </HeaderTemplate>
  <ItemTemplate>
  	<tr>
      <td width="132" height="40" style="text-align:center;"><a class="menuitem" href="$Url$" style="width: 100%;">$Title$</a></td>
  	</tr>
  </ItemTemplate>
    <SelectedItemTemplate>
    <tr>
      <td width="132" height="40" class="active" style="text-align:center;"><a class="menuitem" href="$Url$" style="width: 100%;">$Title$</a></td>
  	</tr>
  </SelectedItemTemplate>
<FooterTemplate>
    </table>
</FooterTemplate>
</SiteBuilder:SiteMenu>
 
Don't iterate <tr> tags, only <td>:


PHP:
<SiteBuilder:SiteMenu>
  <HeaderTemplate>
    <table width="132" height="62" border="0" cellspacing="0" cellpadding="0"><tr>
  </HeaderTemplate>
  <ItemTemplate>
      <td width="132" height="40" style="text-align:center;">
        <a class="menuitem" href="$Url$" style="width: 100%;">$Title$</a>
      </td>
  </ItemTemplate>
  <SelectedItemTemplate>
      <td width="132" height="40" class="active" style="text-align:center;">
        <a class="menuitem" href="$Url$" style="width: 100%;">$Title$</a>
      </td>
  </SelectedItemTemplate>
  <FooterTemplate>
     </tr></table>
  </FooterTemplate>
</SiteBuilder:SiteMenu>
 
Back
Top