Sydney FP: Latest News - remove read all our news button

Hello

On a web site built with sydney we wanna remove read all our news button in Sydney FP: Latest News widget

So far I tried with

.widget_sydney_latest_news .more-button{
display: none !important;
}

.roll-button.more-button {
display: none !important;
}

with no avail.

Added a class to widget post-display

.posts-display .more-button{
display: none !important;
}

this didnt work either

I cant see what im missing so need help with it.

link to web site is here

UPDATE:
Seems there is some kind of code collision. See bellow:
Runing a test of child theme I got this in php debugger
Notice: Trying to get property of non-object in /xxxxx/xxxxxxxx/public_html/wp-content/themes/sydney/widgets/fp-latest-news.php on line 85

this is the line mentioned above
name))); ?>" class=“roll-button more-button”><?php echo $see_all_text; ?>

<a href="<?php echo esc_url(get_category_link(get_cat_ID($cat -> name))); ?>" class="roll-button more-button"><?php echo $see_all_text; ?></a>

For some reason I’m unable to edit original post,
This above is a full line of code as per opening post explanations

Hello there,

You can simply hide it with this CSS code:


.sydney_latest_news_widget .roll-button {
  display: none;
}

To apply extra custom CSS to your site, add it to Appearance > Customize > Additional CSS from your site dashboard.

Regards,
Kharis

Thank you for reply

This was already tested and it doesn’t work.

tried with adding !important; no avail.

It seems there is issue in widget code at line 85 as per earlier post.
My child theme debuggers is showing this message.
Trying to get property of non-object in /xxxxx/xxxxxxxx/public_html/wp-content/themes/sydney/widgets/fp-latest-news.php on line 85

Additionally button doesn’t work and just reloads the main page

Hello there,

Please try to edit your latest news widget and ensure the option that says “Enter the slug for your category or leave empty to show posts from all categories.” is empty.

Regards,
Kharis

Thank you this solved the problem!

You’re welcome! Glad to have an opportunity to assist you.

Regards,
Kharis

Hello,

I would like to do the same, but I’m using 3 latest news widgets on my main page with 3 différent categories.
If I use the CSS code, it works only if I delete the different categories of my latest news widgets, but I want to keep them. If I keep them, the buttons appear.
How can I do to delete the news buttons and keep my categories in the widgets ?

Thanks a lot,

Maxime

Hello,

Sorry, I restarted my browser and now the buttons disappear :slight_smile:

Maxime