Page 1 of 2
Changing themes doesn't change home page.
Posted: 2020-04-13 15:42
by kanklovitch
Hi Guys
I made a mistake posting to the Features section that I would like to change colors on the home page. I have since learnt about themes and how to change them which I did to Sandstone and I like it. However it doesn't change the colours on the home page, just the other ones. Is there anyway to do that or is it too complicated. Thanks very much
Re: Changing themes doesn't change home page.
Posted: 2020-04-13 16:16
by pbottcher
Hi,
the buttons used on the home page are :
btn-warning and btn-info.
So if you want to change that, you need to apply the changes to those two buttons.
As an alternative you can of course remove those classes and add the classes you want to have to display the buttons in a different colour.
Re: Changing themes doesn't change home page.
Posted: 2020-04-13 16:18
by kanklovitch
Also is there away to get rid of the Icons completely so the text can be centered?
Re: Changing themes doesn't change home page.
Posted: 2020-04-13 16:51
by kanklovitch
Sorry Mr Super Hero, I feel out of my league around here so much but I love to learn AppGini. Are those buttons in a hooks file?
Re: Changing themes doesn't change home page.
Posted: 2020-04-13 17:02
by pbottcher
Hi there,
the button definitions are in the css file, but you should avoid touching them as they will be overwritten once you recreate your app.
A better way is to create your own style definitions (you can copy the defintions out of the base file and change them to your needs).
Or you can apply the css style dynamically using jquery on the element(s).
For the glyphicons, you can remove the using jquery. If you want to apply the changes to all your pages, the footer-extras.php might work out for you.
you can try
$j(function() { $j('#top_buttons .btn-group:first').find('.glyphicon').remove() })
Re: Changing themes doesn't change home page.
Posted: 2020-04-13 17:06
by kanklovitch
Wow, you are so helpful, thanks for pointing me in the right direction, I will learn what I can from here.
Re: Changing themes doesn't change home page.
Posted: 2020-04-14 16:15
by kanklovitch
Hi Super Hero
I tried the jquery in both the headers-extras and footers-extras but neither worked. The icon take up a lot of space on the buttons,it would be so nice to be able to remove them. I will continue to learn what I can. BTW I have never understood what is the difference between the footers and headers files and when to use one or the other. Thanks for all your help.
Re: Changing themes doesn't change home page.
Posted: 2020-04-14 18:24
by pbottcher
Hi,
let me make a guess. You copied the data I posted 1:1 into the hooks/footer-extras.php.
As this is a php file you need of course to put it into the script tags.
Code: Select all
<script>
$j(function() { $j('#top_buttons .btn-group:first').find('.glyphicon').remove() })
</script>
Re: Changing themes doesn't change home page.
Posted: 2020-04-14 18:36
by kanklovitch
Now that is funny!! I just barely know enough that I had to put it inside of script tags and just a little more. Sorry it doesn't have any effect.
ps - When I replied last time I was going to mention that I did put it inside of the script tags. I really hope you enjoy all this help you give because I just love learning more about this wonderful program. I am 73 years old, have been in business the last 50 years and never found any software this useful and fun to use and at the same time develop useful applications that will help people manage their information. I never could figure out Access and Excel was never this much fun or interesting.
Re: Changing themes doesn't change home page.
Posted: 2020-04-14 18:55
by pbottcher
Hi,
can you post your file here please. Are you using any other script to manipulate the layout?
In my system it looks like this:

- icon-remove.gif (133.59 KiB) Viewed 7776 times
Re: Changing themes doesn't change home page.
Posted: 2020-04-14 19:08
by kanklovitch
I am referring to these icons.
Re: Changing themes doesn't change home page.
Posted: 2020-04-14 19:20
by pbottcher
Thanks for pointing that out. Could not see that in the picture you posted.
you can try
$j('.panel-body').find('.glyphicon-list-alt').remove();
Re: Changing themes doesn't change home page.
Posted: 2020-04-14 19:44
by kanklovitch
OK I like that Superhero, it works on the bottom grey buttons but not the home page .
Re: Changing themes doesn't change home page.
Posted: 2020-04-14 20:32
by pbottcher
Hi,
well not sure what page you have there, as i do not habe the detail view on the same page as the index. Aslo I cannot really see what icons there are on the index page.
So you might try
$j('.panel-body a img').remove()
Re: Changing themes doesn't change home page.
Posted: 2020-04-14 21:01
by kanklovitch
This is the index page, I put the latest code in the footers-extra and nothing happened. As I mentioned the previous code worked for the detail pages.
Re: Changing themes doesn't change home page.
Posted: 2020-04-14 21:30
by pbottcher
which theme are you using?
Re: Changing themes doesn't change home page.
Posted: 2020-04-14 21:40
by kanklovitch
Spacelab
Re: Changing themes doesn't change home page.
Posted: 2020-04-14 21:42
by kanklovitch
The rest of the pages changed to dark grey buttons but the home page buttons kept there colours.
Re: Changing themes doesn't change home page.
Posted: 2020-04-14 21:46
by pbottcher
ok,
and what are the icon you have in front of the text? Images, or icons?
If you right click on the icon, do you see a "save picture as" option?
Re: Changing themes doesn't change home page.
Posted: 2020-04-14 22:01
by kanklovitch
Those are the png icons you can pick for each table
Re: Changing themes doesn't change home page.
Posted: 2020-04-14 22:02
by kanklovitch
Yes I can "save picture as"
Re: Changing themes doesn't change home page.
Posted: 2020-04-15 12:44
by kanklovitch
Good morning
This is from my index page. I would like to get rid of the icon, which is of little value no matter what the icon looks like, and centre everything. If I can't get rid of the icon at least I want it to be centered so the text can all fit and it looks good.
Thanks very much for your help.
Re: Changing themes doesn't change home page.
Posted: 2020-04-15 16:42
by pbottcher
Hi,
can you please post the footer-extras.php you have used.
Re: Changing themes doesn't change home page.
Posted: 2020-04-15 17:15
by kanklovitch
<?php
/*Changing Filter to Red callKenny */
?>
<script>
$j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md').find('#Filter').html($j('.btn-group-lg.visible-xs, .btn-group-lg.visible-md')
.find('#Filter').html().replace('Filter', '<b><font color="red">Search callKenny</font></b>'));
</script>
<?php
/*Remove Glyphicon in child page buttons */
?>
<script>
$j('.panel-body').find('.glyphicon-list-alt').remove();
</script>
Re: Changing themes doesn't change home page.
Posted: 2020-04-15 17:43
by pbottcher
ok,
so I'm missing
$j('.panel-body a img').remove()
Can you add this.