• Resolved JenniferCross

    (@jennifercross)


    Hi Kharis and Roman,

    I hope you are both well.

    I wonder if you can help.

    I have separated out my blogs into 2 categories, ‘Blogs’ and ‘In the Press’.

    On the homepage, underneath the 3 latest of each, there is a button saying ‘See all articles’ however this is just linking to the homepage. Please can you let me know how the ‘See all articles’ underneath the 3 blogs can link to a page will all articles in the blog category, and how the button underneath the ‘In the Press’ articles can link to a page showing all of the articles in the ‘In the Press’ category?

    I look forward to hearing from you.

    Many thanks,
    Jen

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 23 total)
  • Hi Jen,

    I hope you’re well too. Thank you for contacting us.

    The button should automatically link to specified category if the category slud is specified in the Enter the slug for your category or leave empty to show posts from all categories. option in the widget’s settings.

    Have you set your category slugs in there?

    Regards,
    Kharis

    Thread Starter JenniferCross

    (@jennifercross)

    Hi Kharis,

    Thanks, this works perfectly.

    Jen

    Thread Starter JenniferCross

    (@jennifercross)

    Hi Kharis,

    I’ve realised that this isn’t actually resolved, because when I leave the slug category box empty, it shows the latest 3 of all categories on the home page.

    What I am trying to do is show the latest 3 of ‘blogs’ under the blog section and the latest 3 ‘in the press’ articles within that row, but then have the button which says ‘see all articles’ linking to a page which shows everything – is this possible?

    Thanks,
    Jen

    Thread Starter JenniferCross

    (@jennifercross)

    Hi Kharis,

    Just checking whether you are able to help further with this one, as I still haven’t got it working correctly.

    Thanks so much,
    Jen

    Hi Jen,

    I am sorry for the delay. I really appreciate your patience.

    Did you mean you want to have both sections have the same button that reads ‘see all articles’ and link it to the same page, that is posts index page?

    Please confirm.

    Regards,
    Kharis

    Thread Starter JenniferCross

    (@jennifercross)

    Hi Kharis,

    Thank you.

    Is it possible to have the button on the blog row saying ‘See all blogs’ and linking to a page showing everything in the blog category. Then the button on the press row saying ‘See all press articles’ which links to a page showing all articles within the press category?

    Is this possible?

    Thanks,
    Jen

    Thread Starter JenniferCross

    (@jennifercross)

    Hi Kharis, just checking if you are able to help with this query?

    Thanks so much,
    Jen

    Hi,

    I am sorry for the long delay in response. I was stuck in draft.

    Try doing these steps:

    1. Install and activate the TC Custom JavaScript plugin
    2. Go To Appearance > Custom JavaScript
    3. Paste the following code into the provided box

    
    (function($){
    
      'use strict'
    
      var blogButton   = $('.panel-row-style:not(.my-posts-row) .latest-news-area a.all-news');
      var pressButton  = $('.my-posts-row.panel-row-style .latest-news-area a.all-news');
    
      if( blogButton.length ) {
       blogButton.text('See all blogs');
       blogButton.attr('href', 'URL_TO_ALL_BLOG');
      }
    
      if( pressButton.length ) {
       pressButton.text('See all press articles');
       pressButton.attr('href', 'URL_TO_ALL_PRESS');
      }
    
    })(jQuery);
    

    4. Update

    Regards,
    Kharis

    Thread Starter JenniferCross

    (@jennifercross)

    Hi Kharis,

    Thank you (sorry if I sounded impatient!).

    Unfortunately this isn’t working.

    When I click ‘See all articles’ for the blog section, it just goes to the home page. When I click ‘See all press articles’ it says page not found? I have copied and pasted your exact code?

    Thanks,
    Jen

    Hi Jen,

    No worries.

    Have you provided the URLs on these lines:

    
    blogButton.attr('href', 'URL_TO_ALL_BLOG');
    pressButton.attr('href', 'URL_TO_ALL_PRESS');
    

    You should replace URL_TO_ALL_BLOG and URL_TO_ALL_PRESS with the respective links. Sorry for not telling you about this before as I thought the lines were self-explanatory.

    Regards,
    Kharis

    Thread Starter JenniferCross

    (@jennifercross)

    Hi Kharis,

    Ok I see, thanks.

    How do I get the url’s? I’m not sure where to find them?

    Thanks,
    Jen

    Hi Jen,

    If the buttons should link to specific pages, you can find them from the Pages menu located on the left side of your website’s admin area. (/wp-admin).

    Regards,
    Kharis

    Thread Starter JenniferCross

    (@jennifercross)

    Hi Kharis,

    I’m sorry to be a nuisance, I’ve almost got this working but not quite!

    The ‘See all press articles’ button is working and links to a page just showing articles which are in the category ‘press’.

    However the ‘See all blogs’ isn’t working and it just links back to the homepage, even though I have created the links in the same way. Might you be able to take a look for me please?

    I am just trying to link the ‘See all blogs’ button to a page which just shows the articles categorised with ‘blog’.

    Thanks so much,
    Jen

    Hi Jen,

    I’d like to check your posts under ‘See all blogs’, but my web browser couldn’t load it. Did you change your website address?

    Can you get the link from category list under Dashboard > Posts > Categories menu?

    Regards,
    Kharis

    Thread Starter JenniferCross

    (@jennifercross)

    Hi Kharis,

    Just following up on this query – there was a server issue but you should be able to access the website now.

    I would like the Blog section on the menu to link to a page with only articles in the Blog category. Also the button on the Blog row which says See All Articles, again I would like this to link to a page showing just the blog category (i.e. not blog and press categories).

    I look forward to hearing from you.

    Many thanks,
    Jen

Viewing 15 replies - 1 through 15 (of 23 total)
  • The topic ‘Linking to ‘See all articles’’ is closed to new replies.