Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

Okay
  Public Ticket #1802938
splitting address into different lines
Closed

Comments

  • davemussari started the conversation

    On the bottom of the site we need the address to split into different lines the way we want it to

    1108 Wrightstown Road
    Newtown, PA 18940 
    Bucks County PA

    But now it looks like this

    1108 Wrightstown Road Newtown, PA 18940 
    Bucks County PA

    This is in the theme options of the gem under
    contacts and socials

  •  7,095
    Oliver replied

    Hi,

    You need to add <br> tag in the theme options where you need and in the file:

    wp-content/themes/thegem/inc/content.php

    function thegem_contacts()

    change line 122 to this one:

    $output .= '<div class="gem-contacts-item gem-contacts-address">'.esc_html__('Address:', 'thegem').'</br> '.stripslashes(thegem_get_option('contacts_address')).'</div>';

    Or you can create template in the child theme with the name:

    contacts-widget.php

    And put the code:

    <div class="gem-contacts">
    <div class="gem-contacts-item gem-contacts-address">Address:<br> 1108 Wrightstown Road Newtown, PA 18940 Bucks County PA</div>
    <div class="gem-contacts-item gem-contacts-phone">Phone: 215-504-5500</div>
    <div class="gem-contacts-item gem-contacts-email">Email: <a href="mailto:[email protected]">[email protected]</a></div>
    <div class="gem-contacts-item gem-contacts-website">Website: <a href="http://www.worthingtonshagencustombuilder.com">www.worthingtonshagencustombuilder.com</a></div>
    </div>
    

    Where you can ue HTML

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver