Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

how to hide menu item "preferences"

10 years 9 months ago
  • Uwe's Avatar
    Topic Author
  • Uwe
  • Offline
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

Hello,
I have hidden the toolbar to disable all menu items because I use Jomsocial just to display a well designed user profile with very limited options. But in the member wall in the upper right corner there is a small menu (opens when I click on the sprocket-icon) which offers the setting of the preferences. How can I completely disable or delete this menu item from the menu? Preferably I want to do this with an override to make sure that it does not re-show when I update Jomsocial.
Thanks,
Uwe

10 years 9 months ago
Licenses:

Hi, Uwe.

Copy this file:

ROOT/components/com_community/templates/jomsocial/layouts/profile/focus.php

to:

ROOT/templates/your-template/html/com_community/layouts/profile (if you don't have those folders - feel free to create them)

Then edit the file, line 226 remove this:

<?php if ($loggedIn) { ?>
        <div class="joms-focus__button--options--desktop">
            <a href="javascript:" data-ui-object="joms-dropdown-button">
                <svg viewBox="0 0 16 16" class="joms-icon">
                    <use xlink:href="<?php echo CRoute::getURI(); ?>#joms-icon-cog"></use>
                </svg>
            </a>
            <!-- No need to populate menus as it is cloned from mobile version. -->
            <ul class="joms-dropdown"></ul>
        </div>
        <?php } ?>


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 9 months ago
  • Uwe's Avatar
    Topic Author
  • Uwe
  • Offline
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
Licenses:
JomSocial Active Socialize Expired

Hi Michal,
thanks for your quick reply.
This customization removes the whole icon with all menu items. I only want to remove the last menu item "preferences". Could you please check again?
Thanks,
Uwe

10 years 9 months ago
Licenses:

Hi, Uwe.

Sorry, I missed that you want to remove only that one item.
I recommend then using css to remove it:

.joms-focus__button--options--desktop ul.joms-dropdown li:last-child {
display: none;
}

Add above code to your current template main css file.
Then clear browser cache and reload page.
Item should be gone.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW