overlay

GK User
Thu Oct 16, 2014 2:43 pm
How can i change and turn on the dark overlay you see when you visit the site first time (writer template) with the text: Click here to try out other theme styles............

I can't find the module or whatever it is turning this on.
User avatar
Fresh Boarder

teitbite
Fri Oct 17, 2014 9:56 am
Hi

Please show me what You have in mind. I was not aware programmers implemented such overlay and cannot see one in demo for sure.
User avatar
Moderator

GK User
Fri Oct 17, 2014 2:15 pm
I mean like this.
User avatar
Fresh Boarder

GK User
Sat Oct 18, 2014 12:14 pm
You can see it yourself if you delete browser cache and then load the writer template demo again.

Hope you or anyone else can help me with it.

Thanks
User avatar
Fresh Boarder

teitbite
Sun Oct 19, 2014 2:27 pm
Please add this code to override.css and make sure override is enabled in template settings.

Code: Select all
#tip-overlay {
    display: none !important;
}
User avatar
Moderator

GK User
Wed Apr 22, 2015 12:57 pm
Hello Friends,
if your already talking about this subject, may I ask where you can "tip-overlay" is activated, because for me it is not!
The graphics I already under the folder "/templates/gk_writer/images/overlay-img.png" it.
Do not say that I had the QuickStart Photo template and have now switched to the Writer template!
Or I'm missing because another module or plugin?

Best regards and thanks in advance.

:)

_______________________________
Note: Web site is not currently online!
User avatar
Expert Boarder

teitbite
Fri Apr 24, 2015 1:29 pm
Hi

I believe it's shown once, so to see tip-overlay again You will have to clear cookies.
User avatar
Moderator

GK User
Fri Apr 24, 2015 2:53 pm
Yes I had done, but I had tried it in IE, FF, Chrome, Safari and it did not work!
Even in the QuickStart did not!
The image file was there not exist, then I added it later, but it was not! :(
User avatar
Expert Boarder

teitbite
Sat Apr 25, 2015 4:41 pm
Hi

Sorry. Now I know why my copy is showing this :) I've made it for one of users. Please check this thread:

https://www.gavick.com/forums/quark/exp ... 63#p225763
User avatar
Moderator

GK User
Mon Apr 27, 2015 1:49 pm
Many Thanks!
Had before that the file "jquery.cookie.js" search on the internet!
https://plugins.jquery.com/cookie/
And after that it worked! :)
User avatar
Expert Boarder

teitbite
Wed Apr 29, 2015 2:33 pm
Hi

Och yes, that's the file I had to add. Must have missed that in instruction, sorry. Hope anyone else will figure this out as well.
User avatar
Moderator

GK User
Wed Nov 25, 2015 10:13 am
hello Teitbite,

I am trying to show exactly the same overlay using the writer template. I add your code in to the file default.php, I create the overlay-img.png and I upload jquery.cookie.js.

After all this action the overlay is appearing on my page, but is not disappearing when I click on it.

Do you have any suggestion?
Thank you.
User avatar
Fresh Boarder

GK User
Wed Nov 25, 2015 10:21 am
I take a code from the post
https://www.gavick.com/forums/quark/explanations-for-visitors-needed-44318?p=225763#p225763

Code: Select all
<!-- ADDED BY [email protected] -->
   <div id="tip-overlay"></div>
   <style type="text/css">
      #tip-overlay {
      background: url("overlay-img.png") no-repeat scroll 87% 30px rgba(0, 0, 0, 0.75);
      cursor: pointer;
      height: 100%;
      left: 0;
      opacity: 1;
      position: fixed;
      top: 0;
      width: 100%;
      z-index: 99999;
      }
   </style>

   <script type="text/javascript" src="jquery.cookie.js" charset="utf-8"></script>
   <script type="text/javascript">(function($) {$(document).ready(function() {
      if(!$.cookie('tipoverlay')) {
                   $('#tip-overlay').click(function(){
                      $('#tip-overlay').remove();
                           $.cookie('tipoverlay',1,{ expires: 7, path: '/' });
                   });
           } else {
                   $('#tip-overlay').remove();
           }
   });})(jQuery)</script>
   <!-- END -->
User avatar
Fresh Boarder

GK User
Wed Nov 25, 2015 1:35 pm
Problem solved!
I add jquery script before <script type="text/javascript" src="jquery.cookie.js" charset="utf-8"></script>
Regards,
Mateusz
User avatar
Fresh Boarder

teitbite
Sat Nov 28, 2015 11:03 am
Hi

Ok, thank You for the input :) That's correct, I haven't thought about sites where jQuery were not included by default, so it's necessary in some cases.
User avatar
Moderator


cron