-
AuthorPosts
-
October 6, 2016 at 7:06 pm #974222
How can I change the button icon of the sidebar (3 vertical dots) to something else?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 7, 2016 at 3:37 am #974276Hi
This is defined via style classes , check this : http://prntscr.com/cqspr7
You can modify the style class for patty in /templates/ja_mono/css/off-canvas.css to define different style .
Or u can change the class with an icon from /tpls/blocks/off-canvas.php file
Find below code<span class="patty"></span>
October 7, 2016 at 3:01 pm #974463How can I modify that file without loosing the ability to update the template without loosing my hack?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 9, 2016 at 9:24 am #974675Hi
If you are doing change in the css , i suggest you to use custom.css file to override custom changes .
if changes are in php file , you can make an override in /local/tpls/blocks/off-canvas.php file .October 10, 2016 at 9:02 am #974962I already tryed using custom.css but I had not able to override the ellipsis icon with another from font-awesome. Any suggestion of a CSS code working in override with font awesome icon?
On which class should I apply it?
Thanks in advance.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 10, 2016 at 9:20 am #974967Hi
Go to /templates/ja_mono/css/off-canvas.css
Find this code<span class="patty"></span>
Replace it with your font awesome icon code .
Apply your custom style on font via custom.css file .October 10, 2016 at 10:02 am #974990Ok, but I don’t want to lose this hack with future update of the template. I suppose that if I edit the file off-canvas.css, then I’ll lose my hack when I update the template.
Any other solution?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 10, 2016 at 10:08 am #974995Hi
I already suggested the override solution for this , kindly read my reply aboveif changes are in php file , you can make an override in /local/tpls/blocks/off-canvas.php file .
October 10, 2016 at 10:28 am #975016I’ve edited the php file:
<button class="btn btn-menu off-canvas-toggle <?php $this->_c(‘off-canvas’) ?>" type="button" data-pos="left" data-nav="#t3-off-canvas" data-effect="<?php echo $this->getParam(‘addon_offcanvas_effect’, ‘off-canvas-effect-4’) ?>">
<span class="fa fa-home">But it didn’t changed the ellipsis icon but only the "burger menu" icon.
What part of the php code should I edit to change the ellipsis iscon?
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 10, 2016 at 10:57 am #975036Hi
Kindly apply the suggestion above to changes ,
do not edit all codes ,just replace the code
<span class="patty"></span>
with your icon code .
Once done you can share your site url here , so that i can take a look on your changes .October 10, 2016 at 5:14 pm #975094This reply has been marked as private.October 10, 2016 at 5:40 pm #975098Found the issue: you suggested me to edit the off-canvas.php file meanwhile the file to edit was /local/tpls/blocks/sidebar.php
Thanks for helping anyway.
Pankaj Sharma ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
October 11, 2016 at 1:18 am #975155You are welcome !
-
AuthorPosts
This topic contains 12 replies, has 2 voices, and was last updated by Pankaj Sharma 8 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum