Atilla Boz
Forum Replies Created
-
AuthorPosts
-
Ok I tried out 542 versions of those two lines with and without a tags. But I could not find the perfect version to make it work.
Now I found this way to unlink a link with just CSS instead of playing around with the PHP file:
https://css-tricks.com/pointer-events-current-nav/Shortly this CSS code helped me out to unlink that image.
.sd .author-avatar, .sd .author-avatar a img { cursor: default; pointer-events: none; }
Is this cool, or what?! 😉
Thx,
AtillaI know. See my goal was to add that little badge at the left side of the title. I wanted to adress a CSS class that is only in use for premium entries but could not find the right one to add the CSS so I took the post ID of each post by post. Totally sucks, cause I have to add a line CSS anytime I add a new premium entry.
Is there a CSS class, that is only in use with premium entries?
Thx,
AtillaOk I tried with firebug to add the classes – I do need:
1. single – that fills the empty space between header and content and add the dotted line
2. postid-9871 – that clears the choas in the headerFor some specific posts (premium entries) I added a premium badge next to the title… hmmm … was no good idea to add it that way I guess.
So my first thought to just add all those classes to the body classes of the preview page won`t work, because then all other previews pages will also be treated like premium entry preview pages. Is there another class how I can adress the title of the detail pages?
For now I made it a little complicated like this:
/* Detailseiten - Premium Siegel auf diesen Seiten einblenden */ .postid-6651 .header-badge, /* Burg Heimerzheim */ .postid-7275 .header-badge, /* Butler Bernhard */ .postid-7307 .header-badge, /* Landlust GmbH Burg Flamersheim */ .postid-9335 .header-badge, /* Der Sonnenhof */ .postid-9664 .header-badge, /* Hotel Hanseatic Rügen und Villen */ .postid-9738 .header-badge, /* 123gold */ .postid-9816 .header-badge, /* Worte zum Leben */ .postid-9871 .header-badge, /* J. N. Gröfthold Kiefer - Diakon */ .postid-10024 .header-badge, /* Mortimer Taxi */ .postid-10357 .header-badge, /* Ringkissen-Shop.com */ .postid-10359 .header-badge, /* Ringe der Welt */ .postid-10365 .header-badge, /* Hochzeitsladen Nürnberg */ .postid-10062 .header-badge /* Travel Charme Hannover */ { display: block; }
/* Detailseiten - Adresse zurück nach oben, weil Badge runter drückt */ .postid-6651 .sd-address, /* Burg Heimerzheim */ .postid-7275 .sd-address, /* Butler Bernhard */ .postid-7307 .sd-address, /* Landlust GmbH Burg Flamersheim */ .postid-9335 .sd-address, /* Der Sonnenhof */ .postid-9664 .sd-address, /* Hotel Hanseatic Rügen und Villen */ .postid-9738 .sd-address, /* 123gold */ .postid-9816 .sd-address, /* Worte zum Leben */ .postid-9871 .sd-address, /* J. N. Gröfthold Kiefer - Diakon */ .postid-10024 .sd-address, /* Mortimer Taxi */ .postid-10357 .sd-address, /* Ringkissen-Shop.com */ .postid-10359 .sd-address, /* Ringe der Welt */ .postid-10365 .sd-address, /* Hochzeitsladen Nürnberg */ .postid-12672 .sd-address, /* great2gether */ .postid-10062 .sd-address /* Travel Charme Hannover */ { margin: -9px 20px 0px 48px !important; }
Ahh you might be right. here on top we have the body classes from the normal page, and the second one is from the preview area.
gd_theologen_redner-template-default single single-gd_theologen_redner postid-9871 logged-in admin-bar geodir_advance_search geodir_custom_posts geodir-page sd role-administrator et-pb-theme-hochzeit premium chrome et_divi_builder js gd-map-auto customize-support gd-multi-datepicker gd-google-maps
page-template-default page page-id-5536 logged-in admin-bar geodir_advance_search geodir_custom_posts geodir-page sd sd-preview role-administrator et-pb-theme-hochzeit premium chrome et_divi_builder js gd-map-auto customize-support gd-multi-datepicker gd-google-maps
missing on the first one: sd-preview, page-id-5536, page, page-template-default
missing in the preview: gd_theologen_redner-template-default single single-gd_theologen_redner postid-9871Now I gotta find out which one is needed to make it work and how I can add it int the body class of the preview page. Gonna check back soon as I have some news.
Thank you Stiofan!
This reply has been marked as private.June 30, 2017 at 5:44 am in reply to: Supreme Directory – Splash page that shows only 1 time, checked by JS cookie #385229😀
June 29, 2017 at 5:45 am in reply to: Supreme Directory – Splash page that shows only 1 time, checked by JS cookie #385088Ok but now I also found the way to make it like you supposed. I added style=”display:none” to the splash div and then finally understood the jQuery structure and how to adress the CSS so it gets overwritten – check this code out:
<!-- Begin Splash --> <script> jQuery(document).ready(function() { if (jQuery.cookie('noShowSplash')) { jQuery('#splash').hide(); } else { jQuery("#splash").css("display","block"); jQuery("#close-splash").click(function() { jQuery("#splash").fadeOut(1000); jQuery.cookie('noShowSplash', true); }); } }); </script> <div id="splash" style="display:none;"> <div id="splash-inner" > <h1>Hello..!<br> Welcome to ABC <br> </h1> <h2>We wish you a Great Day..!</h2> <br> <a id="close-splash" href="#">Continue to the website...</a> </div> </div> <!-- End splash -->
Feeling proud I made it this far 🙂 I wanna thank my parents, God, my graphic designer Jenny and the big brained GD support team!
June 29, 2017 at 5:12 am in reply to: Supreme Directory – Splash page that shows only 1 time, checked by JS cookie #385087I dont know exactly why, but now I got it working without the double-loading effect. I first changed the splash pages CSS since it was a km of code (1000 lines…). Nothing changed but at least less code.
The I tried different ways with display none stuff and trying to change the CSS via jQuery. Didnt work out. Then in the end, it seemed to work out of nowhere – but I aslo changed the position a little. Anyways, this is how it works for me:
In the footer, right before the closing body Tag I added this:
<!-- Begin Splash --> <script> jQuery(document).ready(function() { if (jQuery.cookie('noShowSplash')) { jQuery('#splash').hide(); } else { jQuery("#close-splash").click(function() { jQuery("#splash").fadeOut(1000); jQuery.cookie('noShowSplash', true); jQuery("#splash").css("display","block !important"); }); } }); </script> <div id="splash"> <div id="splash-inner"> <h2>Hello..!<h2> <h2>Splash Page text bla bla</h2> <br> <a id="close-splash" href="#">Continue to the website...</a> </div> </div> <!-- End splash -->
And this little CSS to position the page as overlay:
#splash { background-color: rgba(0, 0, 0, 0.81); height: 100vh; padding: 2vh; position:fixed; top:0; left:0; right:0; z-index:100000 !important; color: #fff; font-family: 'Nunito', sans-serif, Helvetica !important; } #splash-inner { display: block; margin: 0 auto; max-width: 500px; position: relative; top: 10%; background: #fff; border-radius: 21px; padding: 30px; margin-top: 140px; border: 2px solid #de0540; }
Thanks for the hint with jQuery!
June 28, 2017 at 3:52 pm in reply to: Supreme Directory – Splash page that shows only 1 time, checked by JS cookie #385023Nah I think my code is bullshit. The splash div needs display: none – right? And when the cookie is not set then it gets display block important!
June 28, 2017 at 3:50 pm in reply to: Supreme Directory – Splash page that shows only 1 time, checked by JS cookie #385022So this way round? But the thing with the sliders should be something different I guess. I had that double loading thing before, too. Gonna test switching off the geolocation question.
<script> /* Add Cookie to check if the splash page has been visited */ jQuery(document).ready(function() { if jQuery("#close-splash").click(function() { jQuery("#splash").fadeOut(1000); jQuery.cookie('noShowSplash', true); }); else { (jQuery.cookie('noShowSplash')) jQuery('#splash').hide(); } }); </script>
June 28, 2017 at 4:18 am in reply to: Supreme Directory – Splash page that shows only 1 time, checked by JS cookie #384951Hello Stiofan!
Thank you very much it seems to work like this! 🙂
Now it defenietely recognized the cookie but somehow a little bit, too late.The page in general seems to load 2 times. You see it when you enter the page, click away the popup from the red X and then load the page again by copy pasting the URL in a new window. Then you see the popup appears just for a second and then hides itself before covering the full window.
I think it is the same problem, that makes the sliders on the startpage show without proper CSS styling at the first 1.2 seconds. The slider pictures show up in 3 rows instead of one and the second slider images have no spaces in bewteen etc. You can see it in the screenshot.
Any idea what could be causing this double-load effect?
Thanks in advance,
AtillaJune 25, 2017 at 3:25 am in reply to: Supreme Directory – Splash page that shows only 1 time, checked by JS cookie #384660P.S.: The goal is that when you copy & paste the domain, that the splash page does not show up. So far I only managed, that the splash div does not show up, when the referrer domain is the the websites domain itself.
I have used this code for it – when you come from the same domain the div get display: none and when you come from outside you get display: block
$sites = array("boz1.timmeserver.de", "hochzeit-premium.de"); if (!in_array(parse_url($_SERVER['HTTP_REFERER'], PHP_URL_HOST), $sites)) : ?> <style>#splash {display: block;}</style> <?php else:?> <style>#splash {display: none;}</style> <?php endif; ?>
Yeah I know this is quite a special question – but you guys are also quite a special support team 🙂
Best wishes again,
AtillaJune 25, 2017 at 3:18 am in reply to: Supreme Directory – Splash page that shows only 1 time, checked by JS cookie #384659This reply has been marked as private.Hi Kiran,
in the end it is a fake mandatory field you can still make the entry without writing a description. So it would be already enough if I could hide that * sign
Thanks,
AtillaThis reply has been marked as private. -
AuthorPosts