Lenght of Posts & Including Videos

pending (16 posts) (3 voices)

  1. gmarco
    Member

    Hi, when i create a post i use the "Read More" separator to create my post introduction, then write the rest of the article. But the theme is not showing all content located before the "Read More" separator. Is there any way to change this to increase size?

    And also, why if i insert a video i can't show it directly on blog post. I've to go to "Read more" of that post to see the embebed video.

    Thanks in advance.

    Posted 9 months ago #
  2. Ruderic
    Support

    Hello,

    I think you are experiencing this because the theme displays the excerpt of the post by default. Go to the theme folder and open the file "lib/functions/theme.php". In line #1046 you will find this code:

    the_excerpt();
    $permalink = get_permalink( get_the_ID() );

    Replace it wirh:

    the_content();
    $permalink = get_permalink( get_the_ID() );

    Try that and let us know the results.

    Posted 9 months ago #
  3. gmarco
    Member

    Yeah it works, but then featured image is repeated if you insert it on the post.

    Posted 9 months ago #
  4. Ruderic
    Support

    Could you please provide me a link to your website? So I can take a look at it.

    Posted 9 months ago #
  5. gmarco
    Member

    http://www.paratodolodemas.com

    Posted 9 months ago #
  6. Elliott
    Support

    Hello gmarco,

    I'm not sure if this is what you need or not but there is an option to hide the featured image from displaying on your single post, http://mysitemyway.com/docs/index.php?title=Post_Options.

    Posted 9 months ago #
  7. gmarco
    Member

    I know i can disable it, but if i enabled the code you gave me before i can get all the text i want, but then the inserted image repeats in the homepage.

    Posted 9 months ago #
  8. Elliott
    Support

    So basically you do not want your images to display in the post excerpt correct? The <!--more--> should be working fine for you in this case.

    Posted 9 months ago #
  9. gmarco
    Member

    No i can't use the <!--more--> tag. IF i use it that way, then the image appears in middle of the post when you go to read the post.
    Solution for me would be to increase the number of characters of the excerpt.

    ¿Any way i could do this?

    Posted 9 months ago #
  10. Elliott
    Support

    Open up /wp-content/themes/[your_theme]/lib/functions/theme.php and you can find the lengths starting on line 987.

    If your using a shortcode such as the blog shortcode then you can find the lengths in /wp-content/themes/[your_theme]/lib/shortcodes/14-blog.php

    Posted 9 months ago #
  11. gmarco
    Member

    Yeah edited this on theme.php and seem to work:

    if ( !function_exists( 'mysite_excerpt_length_long' ) ) :
    function mysite_excerpt_length_long( $length ) {
    	return 120;
    }
    endif;
     
    if ( !function_exists( 'mysite_excerpt_length_medium' ) ) :
    function mysite_excerpt_length_medium( $length ) {
    	return 150;
    }
    endif;
     
    if ( !function_exists( 'mysite_excerpt_length_short' ) ) :
    function mysite_excerpt_length_short( $length ) {
    	return 200;
    }
    endif;
    Posted 9 months ago #
  12. gmarco
    Member

    Ok now last problem i find. The excerpt doesn't get the "next line tags" i mean.
    If i leave blank lanes like this.

    Hello

    i'm gmarco.

    The excerpt shows this on homepage:

    Hello i'm gmarco.

    I've tried with "br" tag on html editor but doesn't seem to work.

    Posted 9 months ago #
  13. Elliott
    Support

    The excerpt has HTML and shortcodes stripped. What your probably wanting to do is the_content() with the <!--more--> tag.

    Go ahead and try this so we can see what image you are talking about.

    Posted 9 months ago #
  14. gmarco
    Member

    Already tried, if i use the content and i use an image on the post and this same image as featured it gets repetead. And if i put the image after the <!--more--> tag then the image shows in middle of the text, and destroys the format -.-

    Posted 9 months ago #
  15. gmarco
    Member

    What i want to explain you, is if i put the image after the more tag it doesn't get repeated, but when you read the full post it doesn't show at start of the post, it's in the middle. Something like this schema:

    text text text text text text text text text text text text text text text text text text text text
    text text text text text text text text text text text text text text text text text text text text
    PICTURE text text text text text text text text text text text text text text text text

    text text text text text text text text text text text text text text text text text text text text

    There's no way to insert an image after the the more tag, and then make it show @start of post.

    Posted 9 months ago #
  16. Elliott
    Support

    Try seting a custom excerpt to see if that works for you.

    If you do not see the excerpt option when editing your post then click on "Screen Options" in the top right hand corner and check it to display.

    Posted 9 months ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme