Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • halemaumau Friend
    #160439

    Hi,
    I’m playing around with JA Droid but for the life of me I can’t figure out how to center the main menu. I’ve disabled the default Joomla and K2 menu items and only have 3 of my own menu items but they’re not centered.

    Can someone help me with this?

    Much thanks.

    Sherlock Friend
    #377735

    Dear halemaumau,

    Please try as following for the issue
    Copy the file of pluginssystemjat3base-themesdefaultblockshead.php,put it into the folder of templatesja_droidblockshead.php then open the copied file,you would see this line of code
    [PHP] <link href=”<?php echo T3Path::getUrl(‘images/favicon.ico’) ?>” rel=”shortcut icon” type=”image/x-icon” />[/PHP]
    Just add above it this block
    [PHP] <script type=”text/javascript”>
    //<!]>
    </script>[/PHP]

    then open the file of templatesja_droidcsstemplate.css,look for this

    .main .main-inner1 { margin-left: 0; margin-right: 0; }

    change it to

    .main .main-inner1 { margin-left: 0; margin-right: 0;margin:0 auto }
    .ja-megamenu { margin: 0; padding: 0;float:left }

    I hope these would help !

    dmason Friend
    #377959

    I want to make this change also. However, this didn’t work for me. ??? Any other advice. Does it matter what template profile you are using?

    Thanks,

    Sherlock Friend
    #378064

    Dear dmason,

    it is not matter what profile you are using,You can post here your url for a checking.

    haydenad Friend
    #378160

    Same issue for me, this suggestion didn’t change anything with my menu

    Phill Moderator
    #378173

    dmason & halemaumau,

    You do not appear to have valid membership to use the JA Droid template. Can you post details?

    haydenad Friend
    #378293

    I would like to be able to center and change the typeface on my Menu. Here’s is the test site
    http://www.matchseries.net/16/

    haydenad Friend
    #378295

    I was able to change the typeface but still no luck centering the menu

    Sherlock Friend
    #378404

    Dear haydenad,

    Because your site is joomla 1.6 you should try with this scripts

    <script type=”text/javascript”>
    //<!]>
    </script>

    Instead of the script above,I hope it would help !

    dmason Friend
    #378582

    That worked for 1.6.

    Thanks!

    gbreckley Friend
    #380535

    Where would I put this script the head.php file?

    Phill Moderator
    #380551

    All the details are in post #2. If you still have trouble come back and ask and I will try and assist.

    kevin bates Friend
    #381322

    <em>@dathq 223770 wrote:</em><blockquote>Dear haydenad,

    Because your site is joomla 1.6 you should try with this scripts

    <script type=”text/javascript”>
    //<=!=[=C=D=A=T=A=[
    window.addEvent (‘domready’, function () {
    // alert($(‘ja-mainnav’).getElement(‘ul’).offsetWidth);
    if ($(‘ja-mainnav’).getElement(‘.main-inner1’) && $(‘ja-mainnav’).getElement(‘ul’).offsetWidth) {
    $(‘ja-mainnav’).getElement(‘.main-inner1’).setStyle (‘width’, $(‘ja-mainnav’).getElement(‘ul’).offsetWidth + 5);
    }
    });
    //]=]=>
    </script>

    Instead of the script above,I hope it would help !</blockquote>

    Thank you for this post. Can you please advise what file and where in the file to place this script?
    This is for JA Droid on J1.6

    Thanks!

    Phill Moderator
    #381325

    Copy the file of pluginssystemjat3base-themesdefaultblockshead.php,put it into the folder of templatesja_droidblockshead.php then open the copied file,you would see this line of code
    [PHP] <link href=”<?php echo T3Path::getUrl(‘images/favicon.ico’) ?>” rel=”shortcut icon” type=”image/x-icon” />[/PHP]
    Just add above it this block
    [PHP] <script type=”text/javascript”>
    //<=!=[=C=D=A=T=A=[
    window.addEvent (‘domready’, function () {
    // alert($(‘ja-mainnav’).getElement(‘ul’).offsetWidth);
    if ($(‘ja-mainnav’).getElement(‘.main-inner1’) && $(‘ja-mainnav’).getElement(‘ul’).offsetWidth) {
    $(‘ja-mainnav’).getElement(‘.main-inner1’).setStyle (‘width’, $(‘ja-mainnav’).getElement(‘ul’).offsetWidth + 5);
    }
    });
    //]=]=>
    </script> [/PHP]

    then open the file of templatesja_droidcsstemplate.css,look for this

    .main .main-inner1 { margin-left: 0; margin-right: 0; }

    change it to

    .main .main-inner1 { margin-left: 0; margin-right: 0;margin:0 auto }
    .ja-megamenu { margin: 0; padding: 0;float:left }

    This is for J1.6

    kevin bates Friend
    #381731

    <em>@phill luckhurst 227651 wrote:</em><blockquote>Copy the file of pluginssystemjat3base-themesdefaultblockshead.php,put it into the folder of templatesja_droidblockshead.php then open the copied file,you would see this line of code
    [PHP] <link href=”<?php echo T3Path::getUrl(‘images/favicon.ico’) ?>” rel=”shortcut icon” type=”image/x-icon” />[/PHP]
    Just add above it this block
    [PHP] <script type=”text/javascript”>
    //<=!=[=C=D=A=T=A=[
    window.addEvent (‘domready’, function () {
    // alert($(‘ja-mainnav’).getElement(‘ul’).offsetWidth);
    if ($(‘ja-mainnav’).getElement(‘.main-inner1’) && $(‘ja-mainnav’).getElement(‘ul’).offsetWidth) {
    $(‘ja-mainnav’).getElement(‘.main-inner1’).setStyle (‘width’, $(‘ja-mainnav’).getElement(‘ul’).offsetWidth + 5);
    }
    });
    //]=]=>
    </script> [/PHP]

    then open the file of templatesja_droidcsstemplate.css,look for this

    .main .main-inner1 { margin-left: 0; margin-right: 0; }

    change it to

    .main .main-inner1 { margin-left: 0; margin-right: 0;margin:0 auto }
    .ja-megamenu { margin: 0; padding: 0;float:left }

    This is for J1.6</blockquote>

    Thank you Phil for the help!

Viewing 15 posts - 1 through 15 (of 21 total)

This topic contains 21 replies, has 8 voices, and was last updated by  halemaumau 13 years, 1 month ago.

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