• Home
  • Showcase
    • Newspaper Showcase
    • Newsmag Showcase
  • Support
    • Newspaper Forum
    • Newsmag Forum
    • Blog
    • Documentation
      • Newspaper Documentation
      • Newsmag Documentation
      • The Theme API
    • What’s New
      • Newspaper
        • What’s New in v 11.5
        • What’s New in v 11.4.3
        • What’s New in v 11.4
        • What’s New in v 11.2
        • What’s New in v 11
        • What’s New in v 10.4
        • What’s New in v 10.3.7
        • What’s New in v 10.3.2
        • What’s New in v 10.3
        • What’s New in v 10
      • Changelog
        • Newspaper
        • Newsmag
        • tagDiv Opt-In Builder
  • Services
    • Web Development Services
    • Web Solutions & CMS Development
    • Web design & Front-end Development
    • E-Commerce Development Services
    • Page Speed Optimization Services
  • Buy Newspaper
Search
tagDiv support
  • Become a member
  • Sign in
  • Home
  • Showcase
    • Newspaper Showcase
    • Newsmag Showcase
  • Support
    • Newspaper Forum
    • Newsmag Forum
    • Blog
    • Documentation
      • Newspaper Documentation
      • Newsmag Documentation
      • The Theme API
    • What’s New
      • Newspaper
        • What’s New in v 11.5
        • What’s New in v 11.4.3
        • What’s New in v 11.4
        • What’s New in v 11.2
        • What’s New in v 11
        • What’s New in v 10.4
        • What’s New in v 10.3.7
        • What’s New in v 10.3.2
        • What’s New in v 10.3
        • What’s New in v 10
      • Changelog
        • Newspaper
        • Newsmag
        • tagDiv Opt-In Builder
  • Services
    • Web Development Services
    • Web Solutions & CMS Development
    • Web design & Front-end Development
    • E-Commerce Development Services
    • Page Speed Optimization Services
  • Buy Newspaper
Home Newspaper Want to add static text just below the post description

Want to add static text just below the post description

Posted in: Newspaper
Post count: 104
rishab55555
#77474
Nov 4, 2015 at 10:27 pm

Hello,

I have newspaper theme v6.5 installed on my website.

URL – http://www.naukrinama.com

I wanted to put a static social media sharing options and whatsapp sharing link below each of my posts automatically. I figured out that I need to make changes to loop-single.php file.

I have placed my code below the line which calls the function get_content() and it displays it at the position as shown in the screenshot below. I want my data to come exactly after the post description. Currently it is coming below the social icons and advertisement.

With further research i found that i have to make changes to the file where get_content() function is defined in theme. Can you please let me know where can i edit it, or how can i achieve the desired result as shown in the screenshot below.

Staging Implementation URL – http://hackaholicit.com/naukrinama/upsc-released-senior-public-prosecutor-seniority-list-cbi-results-1/

Screenshot – http://imgur.com/iNpfkrE

Post count: 22421
Bogdan B.
#77536
Nov 5, 2015 at 10:45 am

Hello,
If you want to place your sharing icons inside the content you will have to modify a different file. The content is created here: http://screencast.com/t/yQxaN78B. A you stated above, you will have to tie your code to the function (function get_content() {}) in order to get it working. You will see comments in the file so you know which part of the page is being generated by the code.
I hope this helps.
Thank you.

Post count: 104
rishab55555
#86419
Dec 30, 2015 at 10:40 am

Hello Bogdan,

Thanks for you previous revert ! I just had another query :

What should I do in case if i want to just show this text (piece of code) to just the mobile/tablet user and not the desktop users.

How can I identify the user-agent of the visitor and then show the text accordingly.

Please reply !

Post count: 22421
Bogdan B.
#86459
Dec 30, 2015 at 1:38 pm

Hello,
if you managed to insert the desired text/code and it works on your desktop version, then you can use css to hide it on desktop and only display it on mobile/tablet. For this you will need to edit the code a bit and add a css class to it so it can be targeted. Then you can use css like so:
@media (min-width:1140px){
.customclass{
display:none
}
}

This will hide your code for the desktop version of your website.
I hope this helps.
Thank you!

Post count: 104
rishab55555
#86554
Dec 31, 2015 at 8:04 am

Hello Bogdan,

I was trying to add this code in the get_content function in the td_module_single_base.php file. But i am not understanding where exactly to add it so that it comes just below the main post description.


Click Here to Share This on
: <?php the_permalink(); ?>" data-action="share/whatsapp/share" alt="<?php the_permalink(); ?>" style="">Whatsapp

</br>
<p> </p>
</br>
: <?php the_permalink(); ?>" data-action="share/whatsapp/share" alt="<?php the_permalink(); ?>" style="">Whatsapp

&url=<?php the_permalink(); ?>&via=naukrinamajobs">Twitter

">Facebook

">Google+

Please let me know how can it be done exactly in the file.

Post count: 104
rishab55555
#86556
Dec 31, 2015 at 8:11 am

Here is the code link – http://pastebin.com/WaQhjxka

Post count: 23312
Catalin
#86881
Jan 4, 2016 at 9:11 am

Hello rishab55555,

If you want to display the code in the desired area, you have to concatenate the code to the content and insert it like in this screenshot -> http://screencast.com/t/3CoDt1Nt3x7Q -> http://screencast.com/t/LyEhJV5tSH
Please noticed that is not a simple task and if you’re not aware of the steps you need to take in this regard please consider hiring a developer or a freelancer to do this for you because we cannot provide custom work for the moment, sorry.

Than you for the message!

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.
rishab55555
Support Hours (GMT+2)

Monday - Friday:
8:00 AM - 17:00 PM

Documentation
  • Newspaper
  • Newsmag
Facebook Instagram Twitter Youtube
Welcome to the Community! This is our main Support Center and, also the place where you can make new friends, people just as passionate about websites as you are. Don’t hesitate to ask for help as we are here for you. Thank you for buying our products!
Contact us: contact@tagdiv.com
  • Home
  • Blog
  • Forums
  • About us
  • Support policy
  • Privacy Policy
© tagdiv.com | Proudly made with by tagDiv. All rights reserved
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept All”, you consent to the use of ALL the cookies. However, you may visit "Cookie Settings" to provide a controlled consent.
Cookie SettingsAccept All
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-advertisement1 yearThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Advertisement".
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
CookieDurationDescription
_ga2 yearsThis cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assign a randomly generated number to identify unique visitors.
_gat_gtag_UA_43963494_11 minuteThis cookie is set by Google and is used to distinguish users.
_gid1 dayThis cookie is installed by Google Analytics. The cookie is used to store information of how visitors use a website and helps in creating an analytics report of how the website is doing. The data collected including the number visitors, the source where they have come from, and the pages visted in an anonymous form.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
CookieDurationDescription
IDE1 year 24 daysUsed by Google DoubleClick and stores information about how the user uses the website and any other advertisement before visiting the website. This is used to present users with ads that are relevant to them according to the user profile.
test_cookie15 minutesThis cookie is set by doubleclick.net. The purpose of the cookie is to determine if the user's browser supports cookies.
VISITOR_INFO1_LIVE5 months 27 daysThis cookie is set by Youtube. Used to track the information of the embedded YouTube videos on a website.
YSCsessionThis cookies is set by Youtube and is used to track the views of embedded videos.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
CookieDurationDescription
CONSENT16 years 5 months 26 days 13 hours 25 minutesNo description
yt-remote-connected-devicesneverThis cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video.
yt-remote-device-idneverThis cookies is set by Youtube and stores the user's video player preferences using embedded YouTube video.
SAVE & ACCEPT
Powered by CookieYes Logo