I need to hide or remove several items ( see attached pic ) at the top of the homepage of my app. How can I do this?
TD
Hide items on homepage
Hide items on homepage
- Attachments
-
- homepage items.png (8.9 KiB) Viewed 1354 times
Re: Hide items on homepage
Hi,
you can add some javascript to the hooks/footer-extras.php.
Look for the DOM Elements that represent the marked items and hide them (or remove them).
For the import CSV data i think this can also be configured via the admin area.
you can add some javascript to the hooks/footer-extras.php.
Look for the DOM Elements that represent the marked items and hide them (or remove them).
For the import CSV data i think this can also be configured via the admin area.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: Hide items on homepage
This is the code in the page source that I wish to eliminate:
So I added this code to the footer-extras.php file:
Doesn't work, any suggestions?
TD
Code: Select all
<a href="import-csv.php" class="btn btn-default navbar-btn hidden-xs btn-import-csv" title="Import CSV data to a table"><i class="glyphicon glyphicon-th"></i> Import CSV data</a>
Code: Select all
<script>
$j('a:contains("import-csv.php")').hide();
</script>
TD
Re: Hide items on homepage
GOT IT, using classes, it's a beautiful thing! Thanks pbottcher for your suggestion!
Following code is in footer-extras.php:
Following code is in footer-extras.php:
Code: Select all
<script>
$j('.btn-import-csv').hide();
$j('.signed-in-as').hide();
$j('.help-shortcuts-launcher').hide();
$j('.help-block').hide();
</script>