• Resolved goldcrest

    (@goldcrest)


    This is my first problem – I tried copying and adjusting featured posts widget from Magazine Lite theme, but encountered a problem – it won’t work unless I have Recent Posts Flexslider widget activated as well, and by the looks of it, the second widget defines default duration, pause time etc.. Seeing as your widget looks much better and offers more customization options, I’m interested in getting it to work properly. Did I miss something whilst copying – I copied mh-slider.php, activated it in mh-widgets.php, and copied all .js files from Magazine lite theme as well.

    I also want to edit default excerpt – is there a way to have the default “Read more” button but also to add a “…” at the end of the defined length post excerpt? I tried combining it with some excerpt plugins but the plugin overrides the default button and messes up the theme in general.

    Thanks in advance!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hi goldcrest,

    please be aware that the MH Magazine lite theme is a completely different theme with its own codebase and styles.

    However, if you’re familiar with coding, you could of course create a custom child theme for Tuto and then customize the theme as you like. You shouldn’t modify core theme files because these changes will be lost after theme updates.

    Did I miss something whilst copying – I copied mh-slider.php, activated it in mh-widgets.php, and copied all .js files from Magazine lite theme as well.

    The Tuto theme doesn’t contain any CSS styling for a slider widget. After implementing the slider correctly, you’ll need to style it accordingly based on your personal requirements.

    If you’re not familiar with coding, you rather might want to use a slider plugin that works out of the box instead of implementing a slider widget by yourself.

    I also want to edit default excerpt – is there a way to have the default “Read more” button but also to add a “…” at the end of the defined length post excerpt?

    There is an option to set a custom read more text located in your WordPress dashboard under Appearance => Customize => Theme Options => General.

    Thread Starter goldcrest

    (@goldcrest)

    You misunderstood both questions – styling is not my problem here, I can easily change it to my liking – as I did already. The widget itself doesn’t work properly, I’m assuming it’s lacking a key file or a function that activates the sliding. I’ll try to work it out on my own.

    The second part regarding custom read more text – I wasn’t referring to the text in the default Read more button, but to a sudden break after 25 words or whatever the value is. I want to know can I somehow add a “…” or “(…)” or something alike after those 25 words and before the Read more button? So it looks like hendrerit mauris id dolor suscipit, et(…) Read More instead of hendrerit mauris id dolor suscipit, et Read More, unfortunately if I use a plugin the Read more button disappears – is there a way to define both the button and the “…” as a Read more part to have them both active at the same time? Or just plainly add a “…” after 25 words, keeping Read more button active below?

    The widget itself doesn’t work properly, I’m assuming it’s lacking a key file or a function that activates the sliding.

    If you haven’t done that yet, then you need to load the FlexSlider script.

    The second part regarding custom read more text – I wasn’t referring to the text in the default Read more button, but to a sudden break after 25 words or whatever the value is. I want to know can I somehow add a “…” or “(…)” or something alike after those 25 words and before the Read more button?

    You could have a look at the function tuto_excerpt_more() within the file /includes/mh-custom-functions.php and modify it according to your personal requirements.

    Thread Starter goldcrest

    (@goldcrest)

    I forgot to add flexslider style to style.css. As for second part, it was an easy edit: in tuto_excerpt_more simply change the return part to return ‘ and it’s done. Thanks.

    I did some minor tweaking in other files, I think the last problem I’ll have for now is as follows: after adding a slider to the main page, I had to remove mh-loop-large-item aka the big first article so it doesn’t look hideous. However, I can’t find a way to restart the article numbering so that instead of skipping the article that would go into that big “landing” article (which is now removed) that article appears in mh-loop-grid along with other two articles. That results with me losing the latest article because it isn’t shown anywhere on the page. Any suggestions?

    You could have a closer look at content-magazine.php and customize it as you like.

    Thread Starter goldcrest

    (@goldcrest)

    Yup I knew it was something in that file, couldn’t manage to find what it was. Solved now, it starts article numbering from article 1 (>0) instead of 2 (>1). Thanks again.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Magazine lite featured posts widget, default excerpt’ is closed to new replies.