Advertisement:

Author Topic: Changing "Price" etc. on the Publish a Listing Page  (Read 795 times)

CameraGigs

  • Newbie
  • *
  • Posts: 15
Changing "Price" etc. on the Publish a Listing Page
« on: June 11, 2018, 06:54:34 pm »
Hello. I thought that I could change the wording of "Publish a listing" and "Price" to something else on this page: item-post.php but when I change the text and save changes it doesn't update to the changes I made. Am I trying to change it on the wrong page?

Thanks!

CameraGigs

  • Newbie
  • *
  • Posts: 15
Re: Changing "Price" etc. on the Publish a Listing Page
« Reply #1 on: June 11, 2018, 07:01:28 pm »
By the way, I'm using the standard Bender theme and accessed that page this way:

oc-content/themes/bender/item-post.php

Thank you.

CameraGigs

  • Newbie
  • *
  • Posts: 15
Re: Changing "Price" etc. on the Publish a Listing Page
« Reply #2 on: June 12, 2018, 06:02:59 pm »
Specifically, I'm trying to change the word "Price" on the listings page to "Budget".

I changed this code (Line 78 of the item-post.php page under the Bender Theme) from <label class="control-label" for="price"><?php _e('Price', 'bender'); ?></label>
                           
to:

<label class="control-label" for="price"><?php _e('Budget', 'bender'); ?></label>

but that didn't change it.

Any help would be very much appreciated.

Thanks!

BritWeb

  • Hero Member
  • *****
  • Posts: 770
  • If it ain't broke, don't fix it.
Re: Changing "Price" etc. on the Publish a Listing Page
« Reply #3 on: June 12, 2018, 11:10:05 pm »
Specifically, I'm trying to change the word "Price" on the listings page to "Budget".

I changed this code (Line 78 of the item-post.php page under the Bender Theme) from <label class="control-label" for="price"><?php _e('Price', 'bender'); ?></label>
                           
to:

<label class="control-label" for="price"><?php _e('Budget', 'bender'); ?></label>

but that didn't change it.

Any help would be very much appreciated.

Thanks!

I changed the following to <label class="control-label" for="price"><?php _e('Budget', 'bender'); ?></label>

label class="control-label" for="price"><?php _e('Price', 'bender'); ?></label>

on item-post.php and it worked.

Cheers

CameraGigs

  • Newbie
  • *
  • Posts: 15
Re: Changing "Price" etc. on the Publish a Listing Page
« Reply #4 on: June 13, 2018, 01:16:35 am »
You're saying that you did the exact same thing I did, but it worked for you?

I guess I need to look again. I don't know why mine didn't take.

CameraGigs

  • Newbie
  • *
  • Posts: 15
Re: Changing "Price" etc. on the Publish a Listing Page
« Reply #5 on: June 13, 2018, 01:24:06 am »
When I look at this page's source code, I see this:

<div class="control-group control-group-price">
                            <label class="control-label" for="price">Price</label>

It appears it gets changed there? Where can I find this?

Thanks!

BritWeb

  • Hero Member
  • *****
  • Posts: 770
  • If it ain't broke, don't fix it.
Re: Changing "Price" etc. on the Publish a Listing Page
« Reply #6 on: June 13, 2018, 02:38:37 am »
When I look at this page's source code, I see this:

<div class="control-group control-group-price">
                            <label class="control-label" for="price">Price</label>

It appears it gets changed there? Where can I find this?

Thanks!

Now change <label class="control-label" for="price"><?php _e('Price', 'bender'); ?></label> to <label class="control-label" for="price"><?php _e('Budget', 'bender'); ?></label>

It certainly worked for me.
 


CameraGigs

  • Newbie
  • *
  • Posts: 15
Re: Changing "Price" etc. on the Publish a Listing Page
« Reply #7 on: June 13, 2018, 02:43:55 am »
Thanks! What file structure/area do I find that Label Class in?

BritWeb

  • Hero Member
  • *****
  • Posts: 770
  • If it ain't broke, don't fix it.
Re: Changing "Price" etc. on the Publish a Listing Page
« Reply #8 on: June 13, 2018, 12:05:32 pm »
Thanks! What file structure/area do I find that Label Class in?

It's in 'item-post.php' file.

Keep playing on you local machine until you get the hang of it and go live once you have gathered enough confidence. Best of luck.

Cheers!

CameraGigs

  • Newbie
  • *
  • Posts: 15
Re: Changing "Price" etc. on the Publish a Listing Page
« Reply #9 on: June 13, 2018, 04:04:45 pm »
So, when I look at it as it resides on my hosting company's file manager (public_html/oc-content/themes/bender/item-post.php) it looks like this:

<div class="control-group control-group-price">
                            <label class="control-label" for="price"><?php _e('Budget', 'bender'); ?></label>
                            <div class="controls">
                                <?php ItemForm::price_input_text(); ?>
                                <?php ItemForm::currency_select(); ?>
                            </div>
But when I look at the Live Site's Source Code, it looks like this:

<div class="control-group control-group-price">
                            <label class="control-label" for="price">Price</label>
                            <div class="controls">
                                <input id="price" type="text" name="price" value="" />                                <input id="currency" type="hidden" name="currency" value="USD" />$                            </div>
                        </div>

What am I missing? Or what file did I not edit that I should have?

Thank you.

BritWeb

  • Hero Member
  • *****
  • Posts: 770
  • If it ain't broke, don't fix it.
Re: Changing "Price" etc. on the Publish a Listing Page
« Reply #10 on: June 13, 2018, 08:17:10 pm »
On the item-post.php (section of it shown below) change Price to Budget

Quote
                        <?php if( osc_price_enabled_at_items() ) { ?>
                        <div class="control-group control-group-price">
                            <label class="control-label" for="price"><?php _e('Price', 'bender'); ?></label>
                            <div class="controls">
                                <?php ItemForm::price_input_text(); ?>
                                <?php ItemForm::currency_select(); ?>
                            </div>
                        </div>
                        <?php } ?>

Cheers!

CameraGigs

  • Newbie
  • *
  • Posts: 15
Re: Changing "Price" etc. on the Publish a Listing Page
« Reply #11 on: June 13, 2018, 10:35:39 pm »
I already have. But for reasons I can't seem to find, it's not changing on the Site itself.

This is the actual code from the File Manager Page on my hosting site (public_html/oc-content/themes/bender/item-post.php) as I've changed it and Saved Changes:

<?php if( osc_price_enabled_at_items() ) { ?>
                        <div class="control-group control-group-price">
                            <label class="control-label" for="price"><?php _e('Budget', 'bender'); ?></label>
                            <div class="controls">
                                <?php ItemForm::price_input_text(); ?>
                                <?php ItemForm::currency_select(); ?>
                            </div>

But for some reason, it's not appearing that way on the site itself.

I'm lost.......

BritWeb

  • Hero Member
  • *****
  • Posts: 770
  • If it ain't broke, don't fix it.
Re: Changing "Price" etc. on the Publish a Listing Page
« Reply #12 on: June 13, 2018, 10:56:38 pm »
The only thing I can think of is that your changes are not getting saved on the server. Why not, make changes on your local machine and upload it.

Best of luck!

CameraGigs

  • Newbie
  • *
  • Posts: 15
Re: Changing "Price" etc. on the Publish a Listing Page
« Reply #13 on: June 13, 2018, 11:17:40 pm »
Because I'm not hosting my own site. It's been hosted by a 3rd Party Company.

CameraGigs

  • Newbie
  • *
  • Posts: 15
Re: Changing "Price" etc. on the Publish a Listing Page
« Reply #14 on: June 13, 2018, 11:46:32 pm »
Duh....I figured it out. I was using the Default Theme. When I "activated" the Bender theme, all was well. Sometimes the simplest things are the hardest for those who can't see them....

Thanks!