WebsiteBaker Support (2.13.x) > General Help & Support

Template question 1

<< < (3/5) > >>

applepie:
I will give it a go. Thank you.

applepie:
Hi, I copied and paste the code below to index.php file on the footer

<div class="footermenu">
   
         <?php //show_menu(); ?>
            <?php show_menu2(1,SM2_ROOT, SM2_CURR+1, SM2_TRIM,&#39;<li><a href="[url]" class="[class]" title="[page_title]">[menu_title]</a>&#39;, &#39;</li>&#39;,
                                            &#39;<ul>&#39;, &#39;</ul>&#39;,&#39;&#39;,&#39;&#39;, 0);
                            ?>
</div>

and created CSS

}
.footermenu {
  overflow: hidden;
  background-color: none;
  color: #333;
}

etc...

The message below appeared on my index.php page. I am not sure what went wrong. Please help. Thanks.

There was an uncatched exception
syntax error, unexpected token "&", expecting ")"
in line (338) of (/templates/revero/index.php):

ruebenwurzel:
try it with:


--- Code: ---<div class="footermenu">
      <?php //show_menu(); ?>
          <?php show_menu2(1,SM2_ROOT, SM2_CURR+1, SM2_TRIM,&#39;<li><a href="[url]" class="[class]" title="[page_title]">[menu_title]</a>&#39;,&#39;</li>&#39;,&#39;<ul>&#39;, &#39;</ul>&#39;,&#39;&#39;,&#39;&#39;, 0);
     ?>
</div>
--- End code ---

&#39; is the HTML-Entity for an Apostroph '

ruebenwurzel:
I see just, that the forums Software seems always to convert the Apostroph to an HTML-Entity in Code-View. So here the code as text:

*****
<div class="footermenu">
      <?php //show_menu(); ?>
          <?php show_menu2(1,SM2_ROOT, SM2_CURR+1, SM2_TRIM,'<li><a href="[url]" class="[class]" title="[page_title]">[menu_title]</a>','</li>','<ul>', '</ul>','','', 0);
     ?>
</div>
****

sternchen8875:
sorry for the trouble and thanks for the "correct" code   (Y)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version