Display "Source:" below title

Posted in: Newsmag
Post count: 45

Hello,

Please how can I display the “Source: Source Name” information after the “Author Name” and “Publishing Date” instead of below the post?

Thanks in advance.

Post count: 23312

Hello nkodgh,

For example, if you are using the post template style 1, you should edit the loop-single-1.php core file and move the div which call the source and place it under the get_comments of your meta info container, like this -> https://www.screencast.com/t/6XBzDTwN and the result should look like this -> https://www.screencast.com/t/yS6GvZEd

Thanks for your understanding!

Post count: 45

Thank you but will I not loose the changes after a theme update?

Post count: 45

I have the changes but the source still displays at the footer. Below is an example url page.

http://www.myjcr.com/news/knust-news/knust-first-year-student-commits-suicide/.

I use the default post template thus I edited the loop-single.php but can’t see the changes.

  • This reply was modified 9 years by nkodgh.
Post count: 23312

Hello nkodgh,

Unfortunately, notice that each customization will be overwritten in next future update, sorry! If you want to avoid this, you should try using the child theme for your file where you want to make some changes. For more information about this, please check here -> https://forum.tagdiv.com/the-child-theme-support-tutorial/

Thanks for the message!

Post count: 45

I have made the changes but the source still displays at the footer. Below is an example url page.

http://www.myjcr.com/news/knust-news/knust-first-year-student-commits-suicide/.

I use the default post template thus I edited the loop-single.php but can’t see the changes.

Post count: 23312

Hello nkodgh,

I have inspected your website and I saw that you do not have any source in your meta info container, like here -> https://www.screencast.com/t/yS6GvZEd. Do you have added it as my above example? Please try again with more attention, clear all your caches and check the results. As you can see, I have tried at my end and seems to work as expected. Most likely, it is your mistake.

Thanks for the message!

Post count: 45

I used child-theme and it worked. One more thing, how can I get the “Source” to left align with the title and “By Author Name”. It is currently shifted a bit to the right.

I want it to shift to the left so it starts at the same point as the Title and Author name. Please how can I do that?

Post count: 23312

Hello nkodgh,

You should use a bit of CSS code to do this. Try the code below and place it in Theme panel->Custom CSSW area.

.td-post-source-tags {
margin-left:-20px;
}

The result is here -> https://www.screencast.com/t/FwJmar0g

Thanks for the message!

Post count: 45

Thank you Catalin.

It worked as expected.

Post count: 23312

Hello nkodgh,

I am glad that you could manage the problem.

Thanks for the message!

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