Advertisement:

Author Topic: I want to know how to make the phone number appear with a single click????  (Read 601 times)

BazarulDeCase

  • Newbie
  • *
  • Posts: 6
I want to know how to make the phone number appear with a single click!
Now you have to click to see the phone number.
The theme is Veronika!
The site is https://www.bazaruldecase.ro/
marius-ciclistul ma poti ajuta cu acesta problema cu afisarea numarului de telfon cu un click?
« Last Edit: February 10, 2018, 06:56:24 pm by BazarulDeCase »

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: I want to know how to make the phone number appear with a single click????
« Reply #1 on: February 10, 2018, 06:59:38 pm »
For bender:
/oc-content/themes/bender/item-sidebar.php
Code: [Select]
<button onclick='$(this).html("<b>Telefon</b>: " + "<?php echo osc_user_phone();?>")'><b>Telefon:</b> 07afișează</button>

You can adapt it to your theme (that is a paid one and I don't have it's code).

BazarulDeCase

  • Newbie
  • *
  • Posts: 6
Re: I want to know how to make the phone number appear with a single click????
« Reply #2 on: February 10, 2018, 07:04:07 pm »
where is this code? in which place on the Veronica theme? I want a few steps !! I do not understand! thank you very much...

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: I want to know how to make the phone number appear with a single click????
« Reply #3 on: February 10, 2018, 07:11:28 pm »
/oc-content/themes/veronika/item-sidebar.php

os something similar to item sidebar.php

In that file look for

<div class="contact-button btn btn-primary tr1 round3 i-shadow mobile-found">

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: I want to know how to make the phone number appear with a single click????
« Reply #4 on: February 10, 2018, 09:18:36 pm »
I can't help you more because you can't share the code of that theme (because it's a paid one).

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Re: I want to know how to make the phone number appear with a single click????
« Reply #5 on: February 10, 2018, 11:25:28 pm »
The button from the right might have a href with id. If so, you could call also the js function that is called when you click on the text to show number down side.