Tagged: masonry
-
AuthorPosts
-
May 8, 2016 at 3:54 pm #928038
Change default view for masonry pages, from grid to list.
Is that possible?
Thank you
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
May 9, 2016 at 1:56 pm #928465Hi
try this
go to /html/com_content/category/masnorylyout.php file
find this code<a class="project-grid<?php echo $bloglayout!=1?' active':''?>" href="javascript:void(0)" data-option-value="masonry"><span><i class="fa fa-th-large"></i></span></a> <a class="project-list<?php echo $bloglayout==1?' active':''?>" href="javascript:void(0)" data-option-value="straightDown"><i class="fa fa fa-th-list"></i></a>
replace it with
<a class="project-list<?php echo $bloglayout==1?' active':''?>" href="javascript:void(0)" data-option-value="masonry"><i class="fa fa fa-th-list"></i></a> <a class="project-grid<?php echo $bloglayout!=1?' active':''?>" href="javascript:void(0)" data-option-value="straightDown"><span><i class="fa fa-th-large"></i></span></a>
Let me know if it helps .
May 9, 2016 at 5:41 pm #928520This didnt work.
I had to use this as the second line:
<a class="project-grid<?php echo $bloglayout!=1?”?>" href="javascript:void(0)" data-option-value="straightDown"><i class="fa fa-th-large">I am not very familiar with php, what I did was delete the " active’:’ " . Is it wrong? It works
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
May 10, 2016 at 2:10 am #928720Hi
Removing the 2nd line means you will not have option to switch the layout as you deleted option to switch in the grid view , Now you can see there is only one view for the layout .May 10, 2016 at 4:51 am #928758Maybe I did not explain it well.
I did not remove the second line. I replaced it with this:
<a class="project-grid<?php echo $bloglayout!=1?”?>" href="javascript:void(0)" data-option-value="straightDown"><i class="fa fa-th-large">So this was my final 2 lines:
<a class="project-list<?php echo $bloglayout==1?’ active’:”?>" href="javascript:void(0)" data-option-value="masonry"><i class="fa fa fa-th-list">
<a class="project-grid<?php echo $bloglayout!=1?”?>" href="javascript:void(0)" data-option-value="straightDown"><i class="fa fa-th-large">It works perfectly, but I dont know if technicaly it is correct. I simly removed the ‘active’ state between the questionmarks of the second line.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
May 10, 2016 at 7:16 am #928812Hi
removing active state means the view is not active in that time . You can also use this change on site .
please take backup of original file before applying changes on core files .May 11, 2016 at 10:22 am #929377I still cant make this work…
Still the grid is default.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
May 11, 2016 at 11:55 am #929398Hi
Kindly post your site super user details , I will check and fix it on your site .acusticambiente Friendacusticambiente
- Join date:
- December 2012
- Posts:
- 68
- Downloads:
- 14
- Uploads:
- 19
- Thanks:
- 9
November 2, 2016 at 4:56 pm #982910i have the same problem. how can i change default layout? i tryed the solutions above but it doesn’t work…
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
November 3, 2016 at 12:10 am #982978i have the same problem. how can i change default layout? i tryed the solutions above but it doesn’t work…
Hi could u open your own thread and add your site details in that , so that we can assist you better .
-
AuthorPosts
This topic contains 9 replies, has 3 voices, and was last updated by Pankaj Sharma 8 years ago.
We moved to new unified forum. Please post all new support queries in our New Forum