• hi,

    i would like to completely take “See all our news” out from my latest news. How can this be possible?

    thanks in advance.

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

    Did you mean that you want to display all latest news and remove the “See all our news” link?

    It’s possible but you have to do the trick by modifying the PHP files. And I suggest you to create a child theme first.

    Thread Starter teolog

    (@teolog)

    hi,

    as you mentioned, i want to display the “latest news”, and remove “see all our news”. Is it possible through custom css? If not, what is your solution to my problem?

    also, can i make the link inactive so that i will keep my text there, but with no linking to somewhere else?

    thanks in advance.

    Hmm okay, you can hide the “see all our news” using css code below:

    section#latest-news a.all-news {
        display: none;
    }

    And you have to modify the PHP files to remove the link of the news title. Let me know if you already create a child theme.

    Thread Starter teolog

    (@teolog)

    hi,

    the code is working fine only if you keep it like this.
    a.all-news {display:none;} but, thank you so much about it.

    what should i modify in my php files if i want to keep the “see all our news”, but, remove the link?

    thanks in advance

    yeah, you can use those css code too.

    Here is the steps to remove the link of the “see all our news”:
    1. create a child theme and activate it.
    2. duplicate “widgets/fp-latest-news.php” file from the parent theme to the child theme
    3. open fp-latest-news.php within the child theme and change this line:
    <?php echo get_permalink( get_option( 'page_for_posts' ) ); ?>
    to
    #!

    4. open functions.php in the child theme and add this line:

    if ( function_exists('siteorigin_panels_activate') ) {
        require_once get_template_directory() . "-child/widgets/fp-latest-news.php";
    }

    5. open functions.php in the parent theme and change this line:
    require get_template_directory() . "/widgets/fp-latest-news.php";
    to
    // require get_template_directory() . "/widgets/fp-latest-news.php";

    Thats it, let me know how it goes.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Remove "See all our news"’ is closed to new replies.