• alexander70

    (@alexander70)


    Hello! How to make that when viewing the archive, the names of the pages are clickable, contain a hyperlink to the page? Thanks

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

Viewing 8 replies - 1 through 8 (of 8 total)
  • cleancoded

    (@cleancoded)

    I would first make a child theme, so you can still update your theme whenever the theme author releases updates.

    More information on that:

    https://codex.www.ads-software.com/Child_Themes

    Then, in your child theme folder, add a copy of the archive.php file from the main theme folder. This is the page template that you will want to update.

    I can’t provide any specific instructions or code, because it seems you’re already using a customized (updated from the original) version of this theme. When I installed the latest version of this theme to a new test install of WordPress, I created test posts and viewed the post category page, and the titles link to posts as expected. I additionally do not see any theme options, or Customizer options for changing this setting.

    Here’s a video walkthrough I created in troubleshooting the issue, outlining the expected functionality in the out-of-the-box version of the theme you’re using:

    Thread Starter alexander70

    (@alexander70)

    I have installed plugin https://www.ads-software.com/plugins/child-theme-configurator/ . What should I do next?

    cleancoded

    (@cleancoded)

    Have you already made changes to the parent theme’s archive.php or functions.php files? Your site (specifically, the post archive pages using the archive.php page template) is not behaving the same way my test install is, using the same theme.

    Because you’re not using a custom theme, I only suggested you create a child theme so you’re able to update it when your theme author releases new versions. If you’ve already made a variety of changes and customizations to the theme, you already cannot update without losing those changes.

    Thread Starter alexander70

    (@alexander70)

    It seems that I need to deal with this, make a draft of the site, so as not to spoil anything. But specifically, what needs to be done so that hyperlinks to these pages appear on the names of pages in the archive?

    cleancoded

    (@cleancoded)

    Take a look at your archive.php file and see how the “Read more” links are being created. I would assume it’s using something like post_permalink — once you find it, add the same tags around the post titles that are being used to create the “Read more” links on the same page.

    Again, I would discourage you from making edits to the live site, though.

    Unfortunately, I don’t know how your theme has been customized from the original, which displays these links as you want, so I can’t give specific code to revise this page.

    Thread Starter alexander70

    (@alexander70)

    I use this theme and I did not make changes to it. https://www.ads-software.com/themes/responsive/

    cleancoded

    (@cleancoded)

    I see that, but as you can see from the video I posted above, when I install this theme to a fresh install of WordPress, the post titles listed on category pages (using the archive.php template) link to post permalinks just like you’re looking for.

    This means someone has customized your theme for your site, which has changed the default functionality of your theme.

    Without having access to your customized theme template files, I’m unable to provide specific code that would update the post link functionality.

    Thread Starter alexander70

    (@alexander70)

    I have installed plugin “Create And Assign Categories For Pages” https://www.ads-software.com/plugins/create-and-assign-categories-for-pages/ for assign categories for pages.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Hyperlink to the pages’ is closed to new replies.