Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • darengr Friend
    #204719

    please let me now how I can put this button in the horizontal center, instead of left part that is being shown now.

    I have already styled it with “btn btn-primary btn-rounded btn-large ” inside the ACM module fields (button class field).

    Thanks!


    1. gal-style2-button
    phong nam Friend
    #563327

    Hi darengr,

    Please give us your site to take a look.

    Thank you

    darengr Friend
    #563379

    site details provided via pm, thank you

    phong nam Friend
    #563395

    Hi there,

    Open ja/templates/uber/acm/gallery/tmpl/style-2.php then find

    <a class="btn <?php echo $btnClass; ?>" href="<?php echo $btnLink; ?>"><?php echo $btnText; ?> <i class="fa fa-angle-right"></i></a>

    replace with

    <div class="centerme">
    <a class="btn <?php echo $btnClass; ?>" href="<?php echo $btnLink; ?>"><?php echo $btnText; ?> <i class="fa fa-angle-right"></i></a>
    </div>

    Next open custom.css file then add

    .centerme {
    text-align: center;
    }

    Save and recheck.

    darengr Friend
    #563426

    <em>@Leo Burnetts 463828 wrote:</em><blockquote>Hi there,

    Open ja/templates/uber/acm/gallery/tmpl/style-2.php then find

    <a class="btn <?php echo $btnClass; ?>" href="<?php echo $btnLink; ?>"><?php echo $btnText; ?> <i class="fa fa-angle-right"></i></a>

    replace with

    <div class="centerme">
    <a class="btn <?php echo $btnClass; ?>" href="<?php echo $btnLink; ?>"><?php echo $btnText; ?> <i class="fa fa-angle-right"></i></a>
    </div>

    Next open custom.css file then add

    .centerme {
    text-align: center;
    }

    Save and recheck.</blockquote>

    thanks, it worked well. I assume if this could be done in the local folder, you would have told me so.

    Anyway, to avoid modification of source files, I preferred to copy style-2.php .xml files to style-3.* and do the modifications in them.

    In my module, I selected gallery style-3 (which nicely appeared there), and now I have both styles available, with left or center alignment of the button.

    best regards,
    darengr

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

This topic contains 5 replies, has 2 voices, and was last updated by  darengr 9 years, 8 months ago.

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