Show or hide div on page load if cookie set / Exibir ou ocultar elementos dentro de um div por cookie
$30-250 USD
Fechado
Publicado há quase 8 anos
$30-250 USD
Pago na entrega
I have a sales page with a video, and in the minute 6:00 it is displayed a buy button below video along with some elements like testimonials, reviews, etc. We use the Optimizepress theme within Wordpress, and it has a feature called "Delayed fade-in" where we can setup the time for the element show up.
Our problem is when the visitors return to the sales page, sometimes decided to make the purchase, and he has to wait again the 6 minutes until the button and the elements to display, what can make he give up and leave.
I wanted that returning visitors see the buy button along with other elements by default on page load.
As I have researched this can be done using some elements like div, css and cookie. There is a website that uses Optimizepress and as I could see, do this by using some scripts like these below
<div style="display:none;" data-fade="2195">
<script>
if(/(^|;)\s*cookie_lp=/.test([login to view URL])){var divs=[login to view URL]("[data-fade]");[].[login to view URL](divs,function(e){e.style.display="block"})}else document.cookie="cookie_lp=true; max-age=31536000";
</script>
----------------
Tenho uma página com um vídeo para a venda de um produto, e no minuto 6:00 que é quando a oferta é mostrada no vídeo, aparece o botão de "comprar" junto com outros elementos de convencimento. Uso o tema Optimizepress no Wordpress, e nele ele tem uma funcionalidade que é o "Delayed fade-in" onde configuro o tempo que o elemento vai ficar oculto.
Acontece que quando a pessoa volta no site, muitas vezes já decidida a comprar, ela tem que esperar novamente os 6 minutos para que o botão "comprar" apareça, e com isso ela pode desistir da compra.
Gostaria que para as pessoas que voltassem ao site, o botão "comprar" e os demais elementos estivessem visíveis por padrão. Acredito que isso é feito com cookie e div
Hi, i have read your project detail and understand your requirement. I can create the javascript cookies functionality so that if user visit next time to the page, so it will show the purchase button also, so that user don't have to wait for 6 mint. I am sure i can do this. please let me know your websie and when i have to start this.
Olá,
Tenho experiência na web, trabalho com várias linguagens e várias frameworks e cms. Inclusive wordpress, você pode me passar o link do site para dar uma olhada?
Obrigado.
I am a Senior Developer with experience in building high quality sites. My experiences range from building responsive mobile sites that work well cross-browser to building sites and also build ecommerce sites. I have 3+ years of experience in Wordpress.
I look forward to hearing from you.
Regards!
Umair Saeed Mughal
Hi dear
I am professional web developer in php and WordPress and I have 5 year experience in web developing.
i have read your requirement and I will do this for you.
contact me at private message.
thanks
Olá,
Meu nome é João Paulo e sou desenvolver PHP Sênior. Seu problema pode ser resolvido conforme você mencionou, com cookie e JS. Sendo assim, me proponho a faze-lo imediatamente.
Qualquer coisa, me contate! para maiores esclarecimentos.
Att,
João Paulo