Advertisement:

Author Topic: Can I change the "Publish your ad for free" button to say something else?  (Read 5235 times)

zachdude

  • Newbie
  • *
  • Posts: 1
Exactly what the subject says. I want to edit it to say "Post an item"

Also, is there a way to remove the Location part when creating an ad?
« Last Edit: April 18, 2013, 05:46:40 am by zachdude »

vanmicky

  • Full Member
  • ***
  • Posts: 138
it is in the header.php of your theme.
For modern theme in the header.php  /oc-content/themes/modern/header.php :

Go line 41 replace
Code: [Select]
<a href="<?php echo osc_register_account_url(); ?>"><?php _e('Register for a free account''modern'); ?></a>
With
Code: [Select]
<a href="<?php echo osc_register_account_url(); ?>"><?php _e('Post an item''modern'); ?></a>
If your problem is solved mark it solved please...

For the location what do you want to do: remove it ?

Regards,

Van.
« Last Edit: April 18, 2013, 12:00:58 pm by vanmicky »

mmcsus

  • Hero Member
  • *****
  • Posts: 704
  • Open Source
   3.1.1

  oc-content\themes\modern\header.php (line 77)

 

osclaza

  • Newbie
  • *
  • Posts: 4
I have the same problem but with osclass bender theme,  Can I change the "Publish your ad for free" button to say something else?

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
I have the same problem but with osclass bender theme,  Can I change the "Publish your ad for free" button to say something else?
You have detailed info in your post https://forums.osclass.org/repurpose/help-with-free-classifieds-osclass-script-35679/msg149455/#msg149455

marius-ciclistu

  • issues
  • Hero Member
  • *
  • Posts: 1652
  • "BE GRATEFUL TO THOSE THAT SUPPORTED YOU"
Turns out there is a shorter way on changing the original english words.

/oc-content/languages/en_US 

Edit theme.po

replace


Code: [Select]
#: footer.php:43 header.php:55 item-sidebar.php:64 user-login.php:58
msgid "Register for a free account"
msgstr ""

#: footer.php:50 header.php:60
msgid "Publish your ad for free"
msgstr ""

with

Code: [Select]
#: footer.php:43 header.php:55 item-sidebar.php:64 user-login.php:58
msgid "Register for a free account"
msgstr "Your register text here"

#: footer.php:50 header.php:60
msgid "Publish your ad for free"
msgstr "Your publish text here"


Then generate the .mo file and put it onto the server and you're done.
« Last Edit: April 28, 2017, 04:39:21 pm by marius-ciclistu »