Hide items on homepage

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
dlee
Veteran Member
Posts: 137
Joined: 2020-04-14 00:21
Location: South Carolina, USA
Contact:

Hide items on homepage

Post by dlee » 2021-11-20 05:36

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
Attachments
homepage items.png
homepage items.png (8.9 KiB) Viewed 1545 times

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Re: Hide items on homepage

Post by pbottcher » 2021-11-20 16:44

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.
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.

dlee
Veteran Member
Posts: 137
Joined: 2020-04-14 00:21
Location: South Carolina, USA
Contact:

Re: Hide items on homepage

Post by dlee » 2021-11-21 00:45

This is the code in the page source that I wish to eliminate:

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>
So I added this code to the footer-extras.php file:

Code: Select all

<script>
    $j('a:contains("import-csv.php")').hide();
</script>
Doesn't work, any suggestions?
TD

dlee
Veteran Member
Posts: 137
Joined: 2020-04-14 00:21
Location: South Carolina, USA
Contact:

Re: Hide items on homepage

Post by dlee » 2021-11-21 01:08

GOT IT, using classes, it's a beautiful thing! Thanks pbottcher for your suggestion!
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>

Post Reply