New Landing How can we help? Atelier related projects text / portfolio

Viewing 11 posts - 1 through 11 (of 11 total)
  • Posted in: Atelier
  • #214937
    barkovsky
    Member
    Post count: 225

    hi there

    was wondering how to manage the “related projects” text in a portfolio page
    for some pages i don’t want the text at all !
    means it has to go then or changed into other text

    how to do?

    kind regards / attachment of what i mean included

    BK

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

    Hi,

    Please activate your child theme.

    In the child theme functions.php file, please add this and change Your New Title to your desired text:

    if (!function_exists('sf_custom_related_portfolio_heading')) {
       function sf_custom_related_portfolio_heading() {
        	echo 'Your New Title';
    	}
    	add_filter ( 'sf_related_projects_heading' , 'sf_custom_related_portfolio_heading' );
    }

    – David.

    #214972
    barkovsky
    Member
    Post count: 225

    hi David

    childtheme / huh /
    ok, i am running a multisite,
    childtime activation for that kool ? or not pos ?
    and i am sorry, never activated child theme !
    small direction here would be nice
    kind regards
    BK

    #214977
    David Martin – Support
    Moderator
    Post count: 20834

    Hi,

    The child theme works just like a normal theme, it will work fine on your mulisite. Ref: https://codex.wordpress.org/Child_Themes

    A child theme is supplied in the main zip file from ThemeForest, you can upload it and activate it like a normal theme.

    – David.

    #214978
    barkovsky
    Member
    Post count: 225

    ok David
    found the child theme zip in folder
    means
    probably have to install it and then change use the coded you send me ? correct ?
    child theme ok for multisite ?

    #214980
    barkovsky
    Member
    Post count: 225

    ok
    gonna do that then

    thx David

    #215000
    Kyle – SUPPORT
    Moderator
    Post count: 35880

    No problem

    #215384
    beritendershicks
    Member
    Post count: 34

    Hi,

    Thanks for the info. I have been having the same issue and using the child theme only solve part of the issue. I am using WPML for a multilingual website in English and German. Is it possible to have the title translated automatically?
    Sorry to ask but I am not a php expert.

    Thanks
    Berit

    #215386
    David Martin – Support
    Moderator
    Post count: 20834

    The title will translate if you are not using the above customisation, if you are using the above modification, you will need to manually translate the string in WPML.

    Thanks,
    David.

    #215431
    beritendershicks
    Member
    Post count: 34

    Hi,

    I was afraid that this might be the case. If I use those modifications what would the string be called?
    sf_custom_related_portfolio_heading

    I found a WMPL menu item called string translation. I guess that is where I have to add that new string.

    Thanks
    Berit

    #215439
    David Martin – Support
    Moderator
    Post count: 20834

    Hi Berit,

    It would be the literal string Your New Title.

    The proper way to do this would be this though:

    if (!function_exists('sf_custom_related_portfolio_heading')) {
       function sf_custom_related_portfolio_heading() {
       		_e( 'Your New Title', 'swift-framework' );
    	}
    	add_filter ( 'sf_related_projects_heading' , 'sf_custom_related_portfolio_heading' );
    }

    This will make Your New Title available for translation.

    Thanks,
    David.

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

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register