New Landing How can we help? Themeforest Theme Support Neighborhood full width text block – want title only

Viewing 8 posts - 1 through 8 (of 8 total)
  • #126595
    creatorofstuff
    Member
    Post count: 313

    I may be going about this in the wrong way, but I want a section on the page with a different background, with the text centered to align vertically with the titles in the other text blocks. I have tried the full width text block, using centering with CSS, but I realize that the result is exactly centered, but the titles in your text blocks are slightly to the left.

    SO, I tried creating a full width text block only using a title. This works great, except every time I make any edit to any part of the page, the message in the body of the text block comes back – “This is a full width text block. Click the edit button to change this text.” If I don’t notice it, it shows up on my page.

    Is there another away to achieve a full width section of the page with a different background such as what I am describing? Here is a screenshot of a small version of that. I would like to know 2 things:

    1. If this is the only way, how do I prevent that annoying message from coming back each time I make an edit? I tried adding a blank space but that adds space below my title.

    2. Is there a way to create a very large section of a page with a different background?

    I hope this made sense. ๐Ÿ™‚

    Attachments:
    You must be logged in to view attached files.
    #126797
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Try to remove that title using the Custom CSS, or try to remove the default value of that element for that visit \wp-content\themes\neighborhood\includes\swift-framework\page-builder\builder\shortcodes\full-width-text.php in line #71 you will see this

    "value" => __("<p>This is a full width text block. Click the edit button to change this text.</p>", 'swift-framework-admin'),

    remove the text, like this

    
    "value" => __("", 'swift-framework-admin'),

    Let us know,

    Thanks,
    laranz.

    #152578
    creatorofstuff
    Member
    Post count: 313

    I really apologize for not getting back to you on this sooner. Somehow I lost track of this until it came back to haunt me. But I so appreciate your answer.

    Can you please tell me how to make this change such that it isn’t affected when there is a theme update?

    Can I literally create all of those sub-directories under my child theme and place a file in it called full-width-text.php with the changes?

    Thank you so much!!!

    #152592
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please paste this code at functions.php of child theme.

    <?php
    function sf_text_strings( $translated_text, $text, $domain ) {
    $translated_text = strtolower($translated_text);
    switch ( $translated_text ) {
    case '<p>this is a full width text block. click the edit button to change this text.</p>' :
    $translated_text = __( '<p></p>', 'swift-framework-admin' );
    break;
    }
    return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );
    ?>

    Thanks
    Mohammad

    #152878
    creatorofstuff
    Member
    Post count: 313

    Thanks, Mohammad.

    This is great except for one problem. It now adds space where the blank line is, which is not what I want. Is there a way for it to default to no content unless you put it in there?

    See before and after screen shot.

    Attachments:
    You must be logged in to view attached files.
    #152904
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please remove last one code and use this one new code:-

    <?php
    function sf_text_strings( $translated_text, $text, $domain ) {
    $translated_text = strtolower($translated_text);
    switch ( $translated_text ) {
    case '<p>this is a full width text block. click the edit button to change this text.</p>' :
    $translated_text = __( ' ', 'swift-framework-admin' );
    break;
    }
    return $translated_text;
    }
    add_filter( 'gettext', 'sf_text_strings', 20, 3 );
    ?>

    Thanks
    Mohammad

    #153179
    creatorofstuff
    Member
    Post count: 313

    Yes!!! That is the solution. Thank you so much. ๐Ÿ™‚ ๐Ÿ™‚ ๐Ÿ™‚

    #153228
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome. I’m glad that issue resolved.
    Thanks ๐Ÿ™‚
    With Best Regards
    Mohammad

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

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

License required for the following item
Login and Registration Log in · Register