• Resolved remma93

    (@remma93)


    We have created a blog using zerif lite theme and when we post in the latest news, the whole post shows up but we just want the picture and the title of the post to show up and not the whole post, so that people have to click on the title to read the post. Is this possible to do?

Viewing 13 replies - 1 through 13 (of 13 total)
  • Hey there remma93,

    How are you doing today?

    Not sure if you’re referring to the home page latest news section or the blog page that uses blog page template.

    Either way would you mind posting link to the page where I can see this? I’m assuming this could be done with some custom CSS and removing content from blog/home page.

    Best regards,
    Bojan

    hello,
    i have a same problem.. in ‘latest new section, the picture were not shown up’

    is it any way to resolve this? here i enclose with my site link https://www.penangrentcar.com/

    Thread Starter remma93

    (@remma93)

    I have figured my problem out now, I had to add a function into the function.php file to say how many lines of texts/words i want to show.
    our blog site is blog.chesterfieldit.com, if you still wish to take a look.

    With regards to your pictures not working shaufyq, did you add the picture in the correct place?
    When editing your post, if you scroll right down to the bottom, there is featured image box, this is where you add your image to show on the latest news section.

    Hey remma93,

    Glad you managed to figure this out ??

    Cheers,
    Bojan

    Thread Starter remma93

    (@remma93)

    The only other problem i have, which maybe you could help with is that we need to change the order of the section around.

    SO currently we have the about us section and then the latest news section underneath.

    Is there any way of swapping those two around?

    Thanks.

    Hey again remma93,

    This is definitely possible but it will require editing one of your theme templates and swapping section positions.

    To do this you’ll have to edit front-page.php which is located in the root folder of your theme (Ideally you’d want to make a child theme, copy template there and make the changes in your child theme template so you can avoid losing changes once you update the theme), download the file, open it with text editor of your choice and go to line 364 and cut the whole latest news block (https://screencast.com/t/Ci25h2QbTQX) and paste it above line 325 where about us block starts (https://screencast.com/t/gKv5odVW3W8).

    The result should be your latest news block above the about us section.

    Hope this helps ??

    Cheers,
    Bojan

    hey remma93,
    done it, thank you for the help.. ??

    hey again remma93,
    i had been looking your site and its very splendid..

    can i know how you make the favicon?

    btw, is there any chance for me to contact you so i can learnt 1 or 2 things about site

    thanks again

    hey remma93,

    how did you manage to do so? I need that function please! ??
    Would you be so kind to post it in here?
    I would like to just show the picture and the title as well!

    There is something else related to this, which is making me go crazy, because sometimes it shows the post, sometimes it doesn’t… on mobile same thing, but there sometimes even the title isn’t showing up! Argh ?? But I need the title to be there… have no clue ??

    Thread Starter remma93

    (@remma93)

    Hi Coemgem90,

    Add the following function into the function.php file.
    The you change the return number. So if you didn’t want to show any of the post at all, you can just put 0 to show the picture and the title.

    Hope this works for you.

    add_action( ‘wp_enqueue_scripts’, ‘one_pirate_custom_script_fix’ );

    function custom_excerpt_length( $length ) {
    return 10;
    }
    add_filter( ‘excerpt_length’, ‘custom_excerpt_length’, 999 );

    Thread Starter remma93

    (@remma93)

    Hi shaufyq,

    We are actually website designers, however, this is my first time using wordpress and I have had to try and figure out everything for my self to see how well I can do.

    You can email me at [Moderated] if you wish to know more.

    Thanks.

    Thank you remma93!!! Thank you so much! ??
    This is working perfect for me!

    The other bug mentioned in my last post I managed to fix on my own btw!
    Therefor look into styles.css and search “latest news”…
    Edit

    #carousel-homepage-latestnews .item{
    	height: auto;

    by setting a height of about 400px… this worked for my needs perfectly!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    If you need help, take a deep breath and calmly post a new thread on your theme’s support section: https://www.ads-software.com/support/theme/zerif-lite#postform . I’m sure @remma93 is more than capable of searching the theme’s support section for new threads.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘latest news/post layout – Zerif Lite’ is closed to new replies.