New Landing How can we help? Themeforest Theme Support Neighborhood Add to Shopping Bag button – changing wording

Viewing 7 posts - 1 through 7 (of 7 total)
  • #295321
    jefflogo
    Member
    Post count: 32

    I tried changing the functions.php code as indicated in this ticket:

    A few questions

    and I edited the language file as indicated here:

    Translating The Theme Using PoEdit

    But I can’t get the buttons on the single product pages edited. I want “Add to Cart” instead of “Add to Shopping Bag”

    #295322
    jefflogo
    Member
    Post count: 32
    This reply has been marked as private.
    #295447
    David Martin – Support
    Moderator
    Post count: 20834

    Please install and activate the supplied child theme, inside the child theme functions.php file add this:

    	function sf_text_strings( $translated_text, $text, $domain ) {
    		//echo $translated_text;
    		switch ( $translated_text ) {
    			case 'Add to Shopping Bag' :
    			$translated_text = __( 'Aggiungere al carrello Bag', 'swiftframework' );
    			break;
    		}
    		return $translated_text;
    	}
    	add_filter( 'gettext', 'sf_text_strings', 20, 3 );
    #295616
    jefflogo
    Member
    Post count: 32

    Yes! That fixed the buttons.

    However these 3 instances of “shopping bag” still remain on /cart page – see attached image. Those did not change when I edited the language file and replaced all instances of “shopping bag.” How do I change those?

    Attachments:
    You must be logged in to view attached files.
    #295766
    David Martin – Support
    Moderator
    Post count: 20834

    Those are within the .po file. Please provide a dropbox link with your .po file so I can take a look.

    Have you checked they are not marked as fuzzy translations?

    #295871
    jefflogo
    Member
    Post count: 32

    I resaved the .po and .mo files and all is good now. Just for reference, should those be in the neighborhood-child/language folder or in the neighborhood/language? I thought I had them both places but now am unsure what I did. thanks

    #296206
    David Martin – Support
    Moderator
    Post count: 20834

    Yes if using the child theme, add them to neighborhood-child/language and they will be update proof so to speak.

    Be sure within the child theme functions.php you are loading the language files. If using our child theme this should be happening by default.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.