Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • arucardx Friend
    #179563

    Not 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!

    John Wesley Brett Moderator
    #462868

    Thank 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;
    }

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

This topic contains 2 replies, has 2 voices, and was last updated by  John Wesley Brett 12 years, 3 months ago.

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