Advertisement:

Author Topic: add informations in contact page  (Read 131 times)

mehdidjo

  • Newbie
  • *
  • Posts: 31
  • https://www.algeriahome.com
add informations in contact page
« on: July 24, 2019, 02:44:39 pm »
hello eveyone,
I want to add informations in my contact page such, street adress and phone and email. how i can do that?
this is my page: https://www.algeriahome.com/contact

thank you

WEBmods

  • Hero Member
  • *****
  • Posts: 936
  • github.com/webmods-croatia/love-osclass/ | patrick
Re: add informations in contact page
« Reply #1 on: July 25, 2019, 12:34:12 am »
Hello!

Check the attachment to see how it looks. It can be made better (without inputs and using p tags or something) but I've used this before so I just copied it.

Open oc-content/themes/osclasswizards/contact.php.

Replace everything with this:

Code: [Select]
<?php
// meta tag robots
osc_add_hook('header','osclasswizards_nofollow_construct');

osclasswizards_add_body_class('contact');

osc_enqueue_script('jquery-validate');
osc_current_web_theme_path('header.php');
?>


<div class="row">
    <div class="col-md-6">
        <div class="wraps">
            <div class="title">
                <h1>Company Info</h1>
            </div>
            <div class="resp-wrapper">
                <form>
                    <div class="form-group">
                        <label class="control-label">Name</label>
                        <div class="controls">
                            <input type="text" value="COMPANY NAME GOES HERE" readonly>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label">Address</label>
                        <div class="controls">
                            <input type="text" value="COMPANY ADDRESS GOES HERE" readonly>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label">E-mail address</label>
                        <div class="controls">
                            <input type="text"value="EMAIL ADDRESS GOES HERE" readonly>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label">Phone number</label>
                        <div class="controls">
                            <input type="text" value="PHONE NUMBER GOES HERE" readonly>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>

    <div class="col-md-6" id="contact-page">
        <div class="wraps">
            <div class="title">
                <h1>
                  <?php _e('Contact us'OSCLASSWIZARDS_THEME_FOLDER); ?>
                </h1>
            </div>
            <div class="resp-wrapper">
                <ul id="error_list">
                </ul>
                <form name="contact_form" action="<?php echo osc_base_url(true); ?>" method="post" >
                    <input type="hidden" name="page" value="contact" />
                    <input type="hidden" name="action" value="contact_post" />
                    <div class="form-group">
                        <label class="control-label" for="yourName">
                            <?php _e('Your name'OSCLASSWIZARDS_THEME_FOLDER); ?> (<?php _e('optional'OSCLASSWIZARDS_THEME_FOLDER); ?>)
                        </label>
                        <div class="controls">
                            <?php ContactForm::your_name(); ?>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="yourEmail">
                            <?php _e('Your email address'OSCLASSWIZARDS_THEME_FOLDER); ?>
                        </label>
                        <div class="controls">
                            <?php ContactForm::your_email(); ?>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="subject">
                            <?php _e('Subject'OSCLASSWIZARDS_THEME_FOLDER); ?> (<?php _e('optional'OSCLASSWIZARDS_THEME_FOLDER); ?>)
                        </label>
                        <div class="controls">
                            <?php ContactForm::the_subject(); ?>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label" for="message">
                            <?php _e('Message'OSCLASSWIZARDS_THEME_FOLDER); ?>
                        </label>
                        <div class="controls textarea">
                            <?php ContactForm::your_message(); ?>
                        </div>
                    </div>
                    <?php if( osc_recaptcha_items_enabled() ) { ?>
                        <div class="form-group">
                            <div class="recap">
                                <?php osc_show_recaptcha(); ?>
                            </div>
                        </div>
                    <?php ?>
                    <div class="form-group">
                        <div class="controls">
                            <?php osc_run_hook('contact_form'); ?>
                            <button type="submit" class="btn btn-success">
                                <?php _e("Send"OSCLASSWIZARDS_THEME_FOLDER);?>
                            </button>
                            <?php osc_run_hook('admin_contact_form'); ?>
                        </div>
                    </div>
                </form>
            <?php ContactForm::js_validation(); ?>
            </div>
        </div>
    </div>
</div>
<?php osc_current_web_theme_path('footer.php'); ?>

Replace COMPANY NAME GOES HERE and other text with your info.

Regards.

mehdidjo

  • Newbie
  • *
  • Posts: 31
  • https://www.algeriahome.com
Re: add informations in contact page
« Reply #2 on: August 04, 2019, 05:46:07 pm »
Thank you for the response Sir