• Resolved stanhall

    (@stanhall)


    Hello,
    In my latest news widget the button for the posts page does not seem to work anymore. It was working fine. Currently the button is linking back to the home page(www.cesaridirect.com) not to the posts page (www.cesaridirect.com/blog) like it used to . I have made sure that everything is up to date and I have deleted the widget and re added it into the page builder to no avail.
    my website is

    http://www.Cesaridirect.com

    Thank you

Viewing 14 replies - 1 through 14 (of 14 total)
  • Hello there,

    Try to check the widgets/fp-latest-news.php template file. Does it look like this one?

    The button link is defined at this line of code:

    <?php if ($category) : //Link to the category page instead of blog page if a category is selected ?>
    	<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>
    <?php else : ?>
    	<a href="<?php echo get_permalink( get_option( 'page_for_posts' ) ); ?>" class="roll-button more-button"><?php echo $see_all_text; ?></a>
    <?php endif; ?>

    Regards,
    Kharis

    Thread Starter stanhall

    (@stanhall)

    Do I just need to copy and paste the line of code you put in your last comment over the existing file? Because it appears to be the same. Below is the code from my php file =

    <?php if ($category) : //Link to the category page instead of blog page if a category is selected ?>
    			<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>
    		<?php else : ?>
    			<a href="<?php echo get_permalink( get_option( 'page_for_posts' ) ); ?>" class="roll-button more-button"><?php echo $see_all_text; ?></a>
    		<?php endif; ?>

    You don’t have to do so.

    Please edit your page, then edit the “Sydney FP: Latest News” widget, leave empty the field that says “Enter the slug for your category or leave empty to show posts from all categories.”

    Regards,
    Kharis

    Thread Starter stanhall

    (@stanhall)

    Thank you that work! As always you are always the best when it comes to fixing everything!

    I have same problem but did not work out !
    http://www.struczone.com, the call to action button in the updates at the home page always link to the third blog post. i would like to link it to a specific page. any help ?

    Hello @zahibaroudi,

    Thank you for posting in.

    Could you confirm if you have specified a page as your posts page? Please double check it; go to Settings > Reading > Front page displays > have you enabled “A static page (select below)” and set front page and posts page?

    Regards,
    Kharis

    Kharis many thanks, it worked out. Actually, there was no posts page. Even that i have multiple posts page, but i have chosen the wanted page to redirect from the action button and it worked out. Problem resolved !

    Another question please but out of this subject. I have sydney theme but i would like to change the main menu, like aline the pages to the logo, and make a sticky menu with reduced width. and if there was a way to change the total design. For example i would like to do a main menu similar to http://www.dezeen.com

    Reminder my web is http://www.struczone.com

    Thanks for your prompt help !

    Hello there,

    Great! I am glad to hear that.

    Regarding your other question, please post it in a new topic here.

    I would be glad to assist you from here.

    Regards,
    Kharis

    hi!
    can i ask for some help to?

    in the latest news widget there is no button at all…tried to delete the widget and added it again but no luck. i dont know much about coding – nothing really.

    thanks.

    Hello @oga23,

    Make sure you are running the latest version of Sydney and the widgets/fp-latest-news.php file looks like this.

    Regards,
    Kharis

    hi,

    i am running the latest versions of everything.
    the problem was i am an idiot πŸ™‚ i had the button removed with custom css :)))

    everything is working great as is the whole theme.

    i would ask you for some advice if i can, please:
    is there a way to display clients in a more fashionable or cool way with an option for visitor to select which clients to display by category?
    the sydney clients widget is cool for the front page, but for clients page i would like to have some other option – like the project widget…

    thank you guys for everything you do.

    oh – how can i change the slider headline from h2 to h3?
    i know there is totally different section for this but i think as long as i have you on the line… πŸ˜‰

    Hello @oga23,

    I would like to apologize in advance for the delay.

    In order to make the threads to always inline with the current topic, please create your own topic here. I would be glad to assist you from there.

    Regards,
    Kharis

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘Latest News Button not linking to blog page’ is closed to new replies.