• Hi, your theme is just fantastic, but i have a very small question…

    Currently the read more button comes to “early”
    Example: i create a post with a Video…. i want people to see the video withing the first text above it. THEN they can still decide to click on read more… how do i do that?

    see example here webblogking.com/

Viewing 8 replies - 1 through 8 (of 8 total)
  • The first thing you need to realize is that by default, WordPress strips out all of the HTML formatting when an excerpt is created. The second thing is that by default, only the first 55 words of a post are used when creating an excerpt, so if you want your video to show up, you have to code it in the first 55 characters.

    The way to get around this is to use the Excerpt field when you write your post. The Excerpt field allows a certain amount of HTML, including the iframe embed that you’ll need to display your video. If you don’t see an Excerpt field in your Post editor, click on the gray Screen Options tab in the upper right corner and check the Excerpt box; it should then appear. Enter the text that you want to appear in the excerpt, including the YouTube embed code.

    Then you need to edit the postformat.php option page and change bfa_excerpt() to the_excerpt(), because bfa_excerpt won’t use the Excerpt field.

    Thread Starter samphai

    (@samphai)

    And i need to do that the_excerpt() for every single Post? I mean i tried to add the video first and then the text but it did not appear…

    See here and example of Blog where he does not have any Read More and the whole post does appear

    takingbackearth.com/

    Thanks a lot for your support, looking forward to donate your great work

    Steve Amphaijit

    Actually, the takingbackearth.com site does have “read more” links, but they appear as “Continue reading” and not “read more”.

    You only need to change bwa_excerpt to the_excerpt in the postformat.php subtemplate (from the Dashboard, click on Appearance > Montezuma Options > Subtemplates > postformat.php). This will affect all of the posts that show up on your home/blog page.

    However, if you are interested in displaying your entire post instead of just an excerpt, then you can change bwa_excerpt() in postformat.php to the_content() instead. This will, as I said, display the entire post, including the video. You should delete the read more link at the post-footer section of the postformat.php subtemplate, though, since you will be displaying the entire post.

    Thread Starter samphai

    (@samphai)

    OH THAT HELPS men… ?? Thanks a million… I will do that! But later i could still add a Read More from the editor if i would need right?

    Well, no, you have to decide if you are going to display only excerpts (portions) of all of your posts on your home page or the entire content of all of your posts on your home page, you can’t mix and match excerpts with entire posts. That’s because in postformat.php, you’re either going to call the_excerpt or the_content. Whichever one you decide to call is the one that’s going to apply to all of your posts on your home page.

    Now, if you start off by coding the_content and you don’t like how it looks, you can always go back and change postformat.php to call the_excerpt instead. And then you can control how much of the post is displayed by how much you put into the Excerpt field of your post.

    Actually, I take that back. You can define other subtemplates that will display either the entire post or the excerpt, and choose which subtemplate to use from the Post Editor. If you go into your Post Editor, you’ll see on the right a section called Format, which lists post format types like Video or Gallery. None of those subtemplates exist when you first install Montezuma. What you have to do is go to Appearance > Montezuma Options > Subtemplates > Add Subtemplate and you can create a postformat type that displays the entire post in your blog.

    For example, you can create a subtemplate called postformat-video.php as a copy of postformat.php, then modify postformat-video.php to call the_content instead of bwa_excerpt. Then in your post, you mark the post that contains the video as Video in the Format section, and postformat-video will be used to display the entire post instead of just the content.

    Thread Starter samphai

    (@samphai)

    What would you charge to make a few modifications on the Theme?

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Please consider posting this to https://jobs.wordpress.net/ instead of here.

    Per forum rules I am now closing this topic.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Change position of READ MORE Button’ is closed to new replies.