Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to remove Title parameter from links
#1
Hi. I am new to GetSimple.

How can I remove Title paremeter from all <a> tags?
It's not very pretty on the menu bar.
Reply
#2
You need to remove it from the template you're using.

You can also control it by the use of CSS attributes, and or through JQuery.

However if used correctly it can add more information for your users.
Reply
#3
Thanks, found it in frontend.class.php in i18n_navigation plugin folder.
The name of the function that builds links for menu is getMenuHTMLImpl
Reply
#4
1. Create a text file named mynavigation.php and paste this into it:

PHP Code:
<?php

// register plugin
$thisfile basename(__FILE__".php");
register_plugin(
    
$thisfile,
    
'My Navigation','0.1','...','#','...'
);

function 
get_my_navigation($currentpage) {
    global 
$pagesArray;
    
$menu '';
    
$pagesSorted subval_sort($pagesArray,'menuOrder');
    if (
count($pagesSorted) != 0) { 
        foreach (
$pagesSorted as $page) {
            
$sel ''$classes '';
            
$url_nav $page['url'];
            
            if (
$page['menuStatus'] == 'Y') { 
                if (
"$currentpage== "$url_nav") {
                    
$classes "current active "$page['parent'] ." "$url_nav;
                } else { 
                    
$classes trim($page['parent'] ." "$url_nav);
                }
                if (
$page['menu'] == '') { $page['menu'] = $page['title']; }
                if (
$page['title'] == '') { $page['title'] = $page['menu']; }
                
$menu .= '<li class="'$classes .'"><a href="'find_url($page['url'],$page['parent']) .
                
'">'.strip_decode($page['menu']).'</a></li>'."\n";
            }
        }
    }
    echo 
exec_filter('menuitems',$menu);
}

// end of file 

2. Upload the file to your plugins folder.

3. Edit your template and change:

PHP Code:
<?php get_navigation(return_page_slug()); ?>

by:

PHP Code:
<?php get_my_navigation(return_page_slug()); ?>
Reply




Users browsing this thread: 1 Guest(s)