bug? AG 5.91 -> .setTitle can be done twice?
Posted: 2020-11-09 07:38
Hi,
using AG 5.91, I notice, that in a custom page the .setTitle seems to actually set the icon twice.
I am including header-extras and footer-extras in my custom page and both have this code:
Code in header-extras.php
Code in footer-extras.php
Some other related questions:
a) which one is the better code that you would suggest?
b) where would you suggest putting the code? header or footer?
This fist images shows a regular AG page: This second images shows the creation process while my custom page is loading and the images are being placed: Thanks already
Olaf
using AG 5.91, I notice, that in a custom page the .setTitle seems to actually set the icon twice.
I am including header-extras and footer-extras in my custom page and both have this code:
Code in header-extras.php
Code: Select all
<script>
var url="/myTtitleImage.png"
new AppGiniCommon()
.setTitle("<b>myTtitle</b>")
.setImage(url);
</script>
Code: Select all
<script>
$(function() {
var url = "/myTtitleImage.png"
new AppGiniCommon()
.setTitle("<b>myTtitle</b>")
.setImage(url);
});
</script>
a) which one is the better code that you would suggest?
b) where would you suggest putting the code? header or footer?
This fist images shows a regular AG page: This second images shows the creation process while my custom page is loading and the images are being placed: Thanks already
Olaf