-
AuthorPosts
-
arucardx Friend
arucardx
- Join date:
- July 2010
- Posts:
- 346
- Downloads:
- 0
- Uploads:
- 10
- Thanks:
- 21
- Thanked:
- 138 times in 104 posts
August 1, 2012 at 5:02 am #179563Not sure if anyone really needs this function. I only did this because I am a control freak, but in case anyone else would like, here’s the steps. This will only disable the image view button but leaves the image size selector behind.
By default, the Image View button can only be hidden by setting a default value in the JA Parameters of Menu Items. However there may be times where you use a plugin/module to generate a page display but there is simply no way for you to disable the Image View button because the template settings are being taken from categories and not Menu Items.
In such an event, a simple yet drastic approach would be to simply disable the image view button on the whole site. You can still set the default option whether Image / Full Text view in the template backend, disabling the button will not affect anything apart from allowing users to toggle on and off.
Note that Image / Full Text View reads the CSS differently, so if you only want to define the CSS style for 1 view only. Disabling the Image View button to prevent toggling may be a good idea, though giving the option to your users may also be a good idea.
Anyway here’s what you need to do to disable it.
1) Go to template/ja_wall/index.php
2) Search for <li id=”toolbar-display”>
3) Comment out the entire toolbar with <!– –> so it looks like this.
<!--<li id="toolbar-display">
<dl>
<dt>Display</dt>
<!-- <dd id="toolbar-display-imageview" class="first last"><span>Image View</span></dd>
</dl>
</li> -->Do not touch the jQuery(document).ready(function($), doing that will disable the template will pulling the default value from the template backend and applying it to the site. But if for some reason you need to do that, you know where to find it =)
If this helps you, please thank the post and also share your modification in JA Wall Guides so fellow wall builders can help one another and make this an even better template!
1 user says Thank You to arucardx for this useful post
John Wesley Brett ModeratorJohn Wesley Brett
- Join date:
- July 2013
- Posts:
- 2142
- Downloads:
- 17
- Uploads:
- 26
- Thanks:
- 175
- Thanked:
- 645 times in 426 posts
August 1, 2012 at 1:57 pm #462868Thank you!
And another alternative to hacking your index.php file would be to go to
templates/ja_wall/css/template.css – line 1615
and add the following in RED
dd.first.last {
border-radius: 2px 2px 2px 2px;
display: none;
}
-
AuthorPosts
This topic contains 2 replies, has 2 voices, and was last updated by John Wesley Brett 12 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum