Link post to external post

Posted in: Newspaper
Post count: 13

Hi,
For http://international-agriculture.com/ I would like to use the Newspaper theme.

The most important feature that I need is that posts can link to external websites (as it is now). So I should be able to mannually input a title, image and excerpt, but the title links to another website…

Is it possible in your Newspaper theme? Hope to hear from you soon.

Kind Regards.

Post count: 20688

Hi,

That is not possible with the theme by default, there are no settings to allow such a setup. The title will always link to the post page of the published post. The functionality of the blocks/modules is based on self published posts.

So the post will actually have to be created and published, a title, a featured image (for thumbnails)etc have to be set manually.

Maybe through a plugin that can import posts and automatically set featured images and other data. But we have not made any tests with such plugins, so that may or may not work fully, probably it would require modifications to the theme or maybe not work at all.

Thanks

Post count: 13

Hi,
I would like to place an icon (or simple “>”) next to title links on the homepage. This icon should link to an external url. I can code the icon and post specific url, but where in the code should I place it? I tried td_block_template_11.php, but with no result. I am using that block 11 for https://international-agriculture.com/.
Can you guide me?
Regards,

Victor

Post count: 20688

Hi,

If you mean the article titles you could make that modification where the module title is defined
https://www.screencast.com/t/UoTwOw8lYU
You would need additional code if you want that link to change dynamically, but if you place it there it would appear in the module (may need to create additional CSS also).

If you mean the block title, that file you mention would be the one (if that block uses block header template 11)
https://www.screencast.com/t/bLmzd5LIb
https://www.screencast.com/t/YLMGdqI4e
Wrap that in a link or what is needed.

Thanks

Post count: 13

Hi,

Thanks for guiding me in the right direction.
I want to change the H3 title link at the end like this:
$buffy .='';
$buffy .= ' <i class="fa fa-external-link" aria-hidden="true"></i></h3>';
return $buffy;
}

On the “#” the filled in source link (added in backend) should be placed. How can I call that link?
Hope you can help me out.

Post count: 13

The code doesn’t seem to come across this platform, but the question is just how I can call the source url (submitted to a post in backend) to the custom code.

https://imgur.com/aRxT1w9

  • This reply was modified 8 years by Sijpkens.
  • This reply was modified 8 years by Sijpkens.
  • This reply was modified 8 years by Sijpkens.
  • This reply was modified 8 years by Sijpkens.
Post count: 20688

Don’t know about that unfortunately. Maybe a developer/freelancer would be able to help you, you could consider that. For more advanced code modifications we would recommend Envato studio professionals
https://studio.envato.com/

Viewing 7 posts - 1 through 7 (of 7 total)
The forum ‘Newspaper’ is closed to new topics and replies.