Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #64261
    margarita
    Member

    I have my website pretty much complete and it looks good. The only problem I have now is that because the “excerpt” for the featured slider has to be the same number of words for all of the pages, I either have to A) have some of them end randomly in the middle of a sentence, or B) I have to contort the first sentence of each page to have the exact same number of words as all the other pages. I can usually do B, but then when a visitor clicks on the link, the the first sentence does not really sound right. Is there any way to adjust the excerpt length for each featured slider page?

    Thanks.

    #64262
    margarita
    Member

    Or better yet, can I enter different text to be displayed on the slider (not and excerpt from the page)?

    #64372
    Sakin
    Keymaster

    @margarita: For custom excerpt, you can build child theme and add the following code in your child theme functions.php file and then you will get custom excerpt box in your page where you can add in custom text. For child theme refer to http://catchthemes.com/blog/create-child-theme-wordpress/.

    add_action( 'init', 'catchresponsive_add_excerpts_box_pages' );
    function catchresponsive_add_excerpts_box_pages() {
         add_post_type_support( 'page', 'excerpt' );
    }

    If you find difficulty to add in this code then you can search for plugin to add custom excerpt box in pages.

    #64391
    margarita
    Member

    I went to the page you referenced and downloaded the catch-responsive-child theme. I added the code you provided to the bottom of the functions.php file. I activated the child theme. When I look at my site now, on the front page my content is gone and the demo contents are there for the featured posts and slider (but the menu contains all my pages). I go to edit one one of my pages and I do not see where there is anything for adding a custom excerpt.

    Did I do something wrong? Sorry I am not experienced at this….

    #64396
    margarita
    Member

    If it is better for me to use a plug-in, can you suggest one?

    #64419
    Sakin
    Keymaster

    @margarita: It should be like that. Have you customize the code directly in parent Catch Responsive theme. How was your front page content added? Can you check the settings after you activate the child theme. As when you activate the child it, it treats your theme as new theme and then you need to set few settings again. Like assign custom menu, widgets and all.

    For plugin, you need to search at http://wordpress.org/plugins/

    #64701
    margarita
    Member

    OK, I understand now.

    I do have just one more question: When I embed a Youtube video into a page, it shows up the full width of the page even though the code from Youtube has a width and height in the iframe tag. How can I make it smaller?

    Thank you so much for all your help.

    #65019
    Sakin
    Keymaster

    @margarita: Yes, that’s because of responsive video code. You can wrap with div and assign max width. For example you can see the code below:

    <div style="max-width: 560px"><iframe width="560" height="315" src="https://www.youtube.com/embed/nwe-H6l4beM?rel=0" frameborder="0" allowfullscreen></iframe></div>

    #65034
    margarita
    Member

    Excellent. Thanks.

    #65053
    Sakin
    Keymaster

    @margarita: Thanks for your appreciation and if you like Catch Responsive and it’s support then please support it by providing your valuable review at https://wordpress.org/support/view/theme-reviews/catch-responsive?rate=5#postform

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Excerpt length’ is closed to new replies.