Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • webstudio7 Friend
    #189575

    1. add to the template folder /html/mod_menu/default_separator.php

    <?php
    /**
    * @package Joomla.Site
    * @subpackage mod_menu
    *
    * @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
    * @license GNU General Public License version 2 or later; see LICENSE.txt
    */

    defined('_JEXEC') or die;

    // Note. It is important to remove spaces between elements.
    $title = $item->anchor_title ? ' title="'.$item->anchor_title.'" ' : '';
    if ($item->menu_image)
    {
    $item->params->get('menu_text', 1) ?
    $linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" /><span class="image-title">'.$item->title.'</span> ' :
    $linktype = '<img src="'.$item->menu_image.'" alt="'.$item->title.'" />';
    }
    else { $linktype = $item->title;
    }

    ?><a href="#" class="separator"<?php echo $title; ?>><?php echo $linktype; ?></a>

    here the main point is using A instead of SPAN.
    With SPAN (it’s joomlas default) You have bad styled output of separators in top menu.

    TomC Moderator
    #501659

    Is this a tutorial for a solution ?? … or are you pointing out something you find unacceptable?

    :confused:

    webstudio7 Friend
    #501743

    in topic name stay “Tips“.
    Create a separator in top menu, You will see the problem.

    TomC Moderator
    #501793

    <em>@webstudio7 384206 wrote:</em><blockquote>in topic name stay “Tips“.
    Create a separator in top menu, You will see the problem.</blockquote>
    The title of your “tip” is really unclear as to the “tip” you are offering …. just sayin’

    😎

Viewing 4 posts - 1 through 4 (of 4 total)

This topic contains 4 replies, has 2 voices, and was last updated by  TomC 10 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum