Changing themes doesn't change home page.

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
kanklovitch
Veteran Member
Posts: 159
Joined: 2019-02-03 17:26

Changing themes doesn't change home page.

Post by kanklovitch » 2020-04-13 15:42

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
Attachments
Colour-ag.jpg
Colour-ag.jpg (50.27 KiB) Viewed 5339 times

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

Re: Changing themes doesn't change home page.

Post by pbottcher » 2020-04-13 16:16

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

kanklovitch
Veteran Member
Posts: 159
Joined: 2019-02-03 17:26

Re: Changing themes doesn't change home page.

Post by kanklovitch » 2020-04-13 16:18

Also is there away to get rid of the Icons completely so the text can be centered?

kanklovitch
Veteran Member
Posts: 159
Joined: 2019-02-03 17:26

Re: Changing themes doesn't change home page.

Post by kanklovitch » 2020-04-13 16:51

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?

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

Re: Changing themes doesn't change home page.

Post by pbottcher » 2020-04-13 17:02

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() })
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.

kanklovitch
Veteran Member
Posts: 159
Joined: 2019-02-03 17:26

Re: Changing themes doesn't change home page.

Post by kanklovitch » 2020-04-13 17:06

Wow, you are so helpful, thanks for pointing me in the right direction, I will learn what I can from here.

kanklovitch
Veteran Member
Posts: 159
Joined: 2019-02-03 17:26

Re: Changing themes doesn't change home page.

Post by kanklovitch » 2020-04-14 16:15

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.

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

Re: Changing themes doesn't change home page.

Post by pbottcher » 2020-04-14 18:24

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

kanklovitch
Veteran Member
Posts: 159
Joined: 2019-02-03 17:26

Re: Changing themes doesn't change home page.

Post by kanklovitch » 2020-04-14 18:36

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.

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

Re: Changing themes doesn't change home page.

Post by pbottcher » 2020-04-14 18:55

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
icon-remove.gif (133.59 KiB) Viewed 5281 times
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.

kanklovitch
Veteran Member
Posts: 159
Joined: 2019-02-03 17:26

Re: Changing themes doesn't change home page.

Post by kanklovitch » 2020-04-14 19:08

I am referring to these icons.
Attachments
icons.jpg
icons.jpg (36.63 KiB) Viewed 5276 times

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

Re: Changing themes doesn't change home page.

Post by pbottcher » 2020-04-14 19:20

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();
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.

kanklovitch
Veteran Member
Posts: 159
Joined: 2019-02-03 17:26

Re: Changing themes doesn't change home page.

Post by kanklovitch » 2020-04-14 19:44

OK I like that Superhero, it works on the bottom grey buttons but not the home page .

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

Re: Changing themes doesn't change home page.

Post by pbottcher » 2020-04-14 20:32

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

kanklovitch
Veteran Member
Posts: 159
Joined: 2019-02-03 17:26

Re: Changing themes doesn't change home page.

Post by kanklovitch » 2020-04-14 21:01

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.
Attachments
Homepage.jpg
Homepage.jpg (23.35 KiB) Viewed 5258 times

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

Re: Changing themes doesn't change home page.

Post by pbottcher » 2020-04-14 21:30

which theme are you using?
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.

kanklovitch
Veteran Member
Posts: 159
Joined: 2019-02-03 17:26

Re: Changing themes doesn't change home page.

Post by kanklovitch » 2020-04-14 21:40

Spacelab

kanklovitch
Veteran Member
Posts: 159
Joined: 2019-02-03 17:26

Re: Changing themes doesn't change home page.

Post by kanklovitch » 2020-04-14 21:42

The rest of the pages changed to dark grey buttons but the home page buttons kept there colours.

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

Re: Changing themes doesn't change home page.

Post by pbottcher » 2020-04-14 21:46

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

kanklovitch
Veteran Member
Posts: 159
Joined: 2019-02-03 17:26

Re: Changing themes doesn't change home page.

Post by kanklovitch » 2020-04-14 22:01

Those are the png icons you can pick for each table

kanklovitch
Veteran Member
Posts: 159
Joined: 2019-02-03 17:26

Re: Changing themes doesn't change home page.

Post by kanklovitch » 2020-04-14 22:02

Yes I can "save picture as"

kanklovitch
Veteran Member
Posts: 159
Joined: 2019-02-03 17:26

Re: Changing themes doesn't change home page.

Post by kanklovitch » 2020-04-15 12:44

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.
Attachments
index page.jpg
index page.jpg (33.56 KiB) Viewed 5223 times

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

Re: Changing themes doesn't change home page.

Post by pbottcher » 2020-04-15 16:42

Hi,

can you please post the footer-extras.php you have used.
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.

kanklovitch
Veteran Member
Posts: 159
Joined: 2019-02-03 17:26

Re: Changing themes doesn't change home page.

Post by kanklovitch » 2020-04-15 17:15

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

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

Re: Changing themes doesn't change home page.

Post by pbottcher » 2020-04-15 17:43

ok,

so I'm missing

$j('.panel-body a img').remove()

Can you add this.
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.

Post Reply