-
AuthorPosts
-
darengr Friend
darengr
- Join date:
- January 2012
- Posts:
- 108
- Downloads:
- 112
- Uploads:
- 30
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
March 16, 2015 at 12:12 pm #204719please 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!
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
darengr Frienddarengr
- Join date:
- January 2012
- Posts:
- 108
- Downloads:
- 112
- Uploads:
- 30
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
March 17, 2015 at 8:18 am #563379site details provided via pm, thank you
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
March 17, 2015 at 9:31 am #563395Hi 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 Frienddarengr
- Join date:
- January 2012
- Posts:
- 108
- Downloads:
- 112
- Uploads:
- 30
- Thanks:
- 4
- Thanked:
- 1 times in 1 posts
March 17, 2015 at 12:30 pm #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,
darengrAuthorPostsViewing 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
Gallery style-2 button to be centered horizontally
Viewing 5 posts - 1 through 5 (of 5 total)