Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #796087

    Hey guys,

    First off just like to say awesome theme and support.

    I have a bit of a challenge at the moment.

    I’m trying to change the phone number for specific pages depending on the location the page is designed for. At the moment the code I have is as follows:

    05 555 555</div> <div class=”mobilenumber”>Quick Quote Call: 05 555 555</div>

    Is it possible to change the phone number based on page id using something like:

    .page-id-545

    05 555 555</div> <div class=”mobilenumber”>Quick Quote Call: 05 555 555</div>

    .page-id-546

    06 666 666</div> <div class=”mobilenumber”>Quick Quote Call: 06 666 666</div>

    The code is placed under ‘Extra Elements’ in the ‘Header’ section

    Thanks in advance.

    Cian

    #796088

    Some of the code I posted seems to have been removed but I’m sure you get the idea, I’ll try post it again in the private section

    #796089

    ..

    #796345

    Hi,

    You could try to add all the numbers you need to the field then assign them different classes, then you can hide/show them using CSS like this:

    .mobilenumber {
      display:none;
    }
    
    .page-id-yourid .mobilenumber {
      display:block;
    }

    Best regards,
    Rikard

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.