New Landing How can we help? Themeforest Theme Support Dante search results pick up column breaks of portfolio posts

Viewing 13 posts - 1 through 13 (of 13 total)
  • Posted in: Dante
  • #140536
    pdupree
    Member
    Post count: 40

    in search results, portfolio posts retain column shortcodes — i.e. div class one_half

    How can we change this to one-column views like other posts?

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

    Hi,

    It comes from the excerpt, did you add the excerpts of those posts like that?

    Let us know,

    Thanks,
    laranz.

    #140712
    pdupree
    Member
    Post count: 40

    these are excerpts calculated from the post, not text in specific excerpt fields.

    #140926
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    Does it happen with the parent theme active(without modifications?
    Also can you try with all the plugins disabled to discard any plugin conflict.

    -Rui

    #141039
    pdupree
    Member
    Post count: 40

    if I’m reading the php correctly —

    /includes/sf-post-formats.php
    line 685-686
    $custom_excerpt doesn’t get converted into $post_excerpt so it will display in line 718

    #141162
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    @pdupree

    Can you try recommendation above to activate the Dante Parent theme and deactivate all the plugins to try to isolate this issue.

    Let us know the result.

    -Rui

    #141282
    pdupree
    Member
    Post count: 40

    with dante 2.7 and no plugins
    in portfolio, team and blog posts, custom excerpt isn’t picked up

    in portfolio posts when one_half shortcode is used, all text inside shortcode is not displaying — what I’d prefer on search results is that the shortcodes that are defining columns would not be used and the text inside shortcodes would be displayed.

    #141333
    pdupree
    Member
    Post count: 40

    in portfolio, team and blog posts, I’m assuming something like this code needs to be added to /includes/sf-post-formats.php at line 686, so that if there are custom excerpts, they are included in the search results. [Same problem exists in Cardinal.]

    $custom_excerpt = sf_get_post_meta( $post->ID, ‘sf_custom_excerpt’, true );
    $post_excerpt = ”;
    if ( $custom_excerpt != ” ) {
    $post_excerpt = sf_custom_excerpt( $custom_excerpt, $excerpt_length );
    } else {
    $post_excerpt = sf_excerpt( $excerpt_length );
    }

    —–
    to better clarify second problem, in portfolio posts body copy I’m using layout shortcodes. No custom excerpts. And excerpt field doesn’t appear in Edit post page. No text appears in the search results.

    When I add Advanced Excerpt plugin (recommended by swift ideas) it’s not ignoring the layout shortcodes, thus the search results are appearing in several columns instead of one column.

    #141344
    laranz – SUPPORT
    Member
    Post count: 3186
    This reply has been marked as private.
    #141525
    pdupree
    Member
    Post count: 40

    only team members in search results display columns…
    Yes, because I’ve set css to width 100% on the others (one_half, one_third, one_fourth etc).

    re: Canterbury Choir example
    I assume it’s better to use layout shortcodes (one_half, one_fourth) instead of spb_content_elements to create columns to avoid changing bootstrap width settings to get search results to have width of 100%.
    Is that what you would do?

    My concern is how to manage this as my client takes over production of site. I would like to avoid revisiting this every time he tries things in page builder.

    ——————-
    can you try editing the excerpt…
    Yes, the excerpt field works. I’d like to use the custom excerpt field throughout and not use excerpt field. My client is frustrated by the amount of meta fields and tabs and needs things to be a bit simpler. The custom excerpt field doesn’t display in search results (portfolio, team, blog).


    I installed wpide

    #141667
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    In that line, instead of this

    $post_excerpt = strip_shortcodes(get_the_excerpt());

    Try this

    $post_excerpt = strip_tags(strip_shortcodes(get_the_excerpt()));

    Let us know,

    Thanks,
    laranz.

    #141834
    pdupree
    Member
    Post count: 40

    strip_tags eliminates tags that I need

    At this point, I’d be grateful for code that will include $custom_excerpt in the search results.

    #142229
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    You mean, you want custom excerpt for team members instead of the excerpts auto generated by WordPress??

    If so you can change that when it gets printed,

    $search_item .= '<div class="excerpt">'.$post_excerpt.'</div>';

    to

    $search_item .= '<div class="excerpt">'.$custom_excerpt.'</div>';

    Let us know,

    Thanks,
    laranz.

Viewing 13 posts - 1 through 13 (of 13 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