- NewsmagLoading image effects
- NewsmagRequirements for Newsmag
- NewsmagBlock settings tutorial
Hello,
Please have a look at https://abeidblogs.com/ in mobile view.
The problem is that the form at the top of the page is surrounded by white margins which I do not want. Can you guide me on how to remove it?
Also please check the “Workout Tips” header at the bottom of the page. The problem is the same.
(Problem occurs in mobile view only)
Thanks.
Hi
For hidden/remove the share buttons from amp you’ll need to add a custom css in Theme panel>Mobile theme>Custom css
.amp-mode-touch .td-post-sharing-top, .amp-mode-touch .td-post-sharing-bottom{
display:none!important;
}
.amp-mode-touch .td-header-wrap {
background-color: darkred;
}
Fell free to change the color.
Please notice that your support period expired ( Supported until: 2018-09-06 ) we suggest you extend your support if you still need our help with your website or add extra keys that have support, you can extend it from here -> https://www.screencast.com/t/ShdowUq94e -> https://themeforest.net/item/newspaper/5489609?s_rank=2
Thank you for your understanding!
Hi,
I checked your website on mobile, doesn’t look right – http://prntscr.com/nafg9h
The theme already has a viewport meta in the header file – http://prntscr.com/nafgmc
Maybe you removed and forgot about it, that would explain it, as it isn’t there it seems
– http://prntscr.com/nafh47
Try to restore it if possible, not having this meta may have a negative impact for mobile visitors, I can post the code here for convenience
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Now that you updated wordpress, I should note that using an older theme with the latest wordpress may result in problems.
The theme is officially compatible with wordpress 5 starting with version 9.2
– http://prntscr.com/nafo45 (latest is 9.6.1). A changelog can be seen at the bottom of this page – https://themeforest.net/item/newspaper/5489609
Thanks
Hi,
Yes you can, the latest version of the theme is now 9.6.1. There is a changelog for each update here (bottom of the page)
– https://themeforest.net/item/newspaper/5489609
As always it is recommended to make a backup before updating
– https://tagdiv.com/update-newspaper-theme/
After you update the theme, update the theme plugins as well. Also, if you use a child theme and have copied files from the main theme in it in order to modify/add code in them, note that in updates we also modify theme files. If there are problems, copy the necessary files again in the child theme and redo the modifications (remove the old files).
Thanks
Hi,
I see what you are referring to, the sidebar from the latest articles section
– http://prntscr.com/n9g0mb
That sidebar and the latest articles section can’t be moved or edited in the composer. This section along with it’s sidebar will always appear at the bottom of pages, when the Page Builder + Latest Articles + Pagination template is used
– https://forum.tagdiv.com/page-templates-2/
So that sidebar can be left or right of the latest articles, or disabled
– http://prntscr.com/n9g2kt
If you want it to be displayed in a different part of the page, add a widget sidebar element with the composer – http://prntscr.com/n9g3c3 – http://prntscr.com/n9g3fu and select the desired sidebar.
Please let us know if you have more questions.
Thanks
I am building a home page. I have already created some elements. Now I want to create an element (H1 heading) that I would like to place at the top of the page just underneath the header and only on the Home Page.
It seems when I try to add an element it will only add to the bottom of the page and it isn’t possible to move it anywhere.
Hi,
If they are pages you can edit the page and remove the ads.
If the ads are in widget sidebars in posts and pages, maybe create sidebars without ads and set them.
If the ads are in the post content (top, inline or bottom ad spots) the theme does not have settings for specific posts. All it has are general settings to hide them per device
– https://www.screencast.com/t/g6L9YSkB
Hiding them with CSS is permitted by Google when using media queries
– https://support.google.com/adsense/answer/6307124?hl=en
Setting a display:none without media queries is forbidden by Google
– https://support.google.com/adsense/answer/1354736?hl=en
What you can do is to set a single post template from tagDiv Cloud Library with out ads and make a copy of this template and set ads in it for the post were you want to have ads ( the ads in single post template can be set using tagDiv Composer -> https://www.screencast.com/t/dYEh4nIv you can set as many ads you want using the ad box -> https://www.screencast.com/t/IiAlsDAT -> https://www.screencast.com/t/7ua8g3oti).
Maybe use a plugin such as Adrotate to better manage the ads in the website. There are many theme users that recommend this plugin. I believe it has settings for what you have to do per specific posts.
Some more about it here if you should consider it
– http://www.wpbeginner.com/plugins/how-to-manage-ads-in-wordpress-with-adrotate-plugin/
– https://ajdg.solutions/manuals/adrotate-manuals/
Thank you!
I use a table of contents plugin which automatically finds h3 tags on the page and adds them.
Because the block headlines all seem to use H3 tags, it interferes with my Table of Contents.
Is there a way to change the h3 tags to h4, or remove the h tags completely from the block headlines?
Thanks,
Will
Further: I am using cloud templates, and trying to work with Block 15 for adding random posts to the bottom of my pages.
Hi,
Regarding on Like button, please check the following official documentation from here -> https://jetpack.com/support/likes/ You can turn off this functionality from the settings.
For your second question, please notice that you can change the order of your main menu from the Menus Appearance from the panel. You need to move it at the end of your menu items. That’s all! You need to move the first item at the bottom of these from that section, as an example -> https://www.screencast.com/t/Pe8ZxlgM
Regarding on the header section when you do not have any posts, it seems to be a mini bug in our theme and at the moment, we do not have any quick fix in this case, sorry! We hope to fix it in our future updates.
Thank you for your understanding!
I’ve been using Newspaper for over a year on my website and never had an issue upgrading. When I went from 9.5 (I think) to 9.6.1, the coloring of my main menu and footer disappeared. I have attempted the upgrade 3 different times and get the same result.
This is how it used to look. (Ignore the under construction banner):
Menu: http://prntscr.com/n39w6p
Footer: http://prntscr.com/n39vyv
Widgets: http://prntscr.com/n39wc3
This is how it looks now…
Menu: http://prntscr.com/n39wl4
Footer: http://prntscr.com/n39x3e
No widgets: http://prntscr.com/n39wwi
Another thing that is odd. The top featured post image used to have different dimensions. Now all of the posts on the homepage look the same. See the pretzels top post image:
Now: http://prntscr.com/n39yc0
Before: http://prntscr.com/n39z44
I am using header style 6 and footer style 14.
..The website is http://prntscr.com/n39x3e
There is some custom CSS but this has not changed in months and I have never had an issue with prior upgrades:
/* widget title color start */
.td-theme-wrap .block-title > span, .td-theme-wrap .block-title > span > a, .td-theme-wrap .widget_rss .block-title .rsswidget, .td-theme-wrap .block-title > a, .widgettitle, .widgettitle > a, .td-trending-now-title, .wpb_tabs li.ui-tabs-active a, .wpb_tabs li:hover a, .vc_tta-container .vc_tta-color-grey.vc_tta-tabs-position-top.vc_tta-style-classic .vc_tta-tabs-container .vc_tta-tab.vc_active > a, .vc_tta-container .vc_tta-color-grey.vc_tta-tabs-position-top.vc_tta-style-classic .vc_tta-tabs-container .vc_tta-tab:hover > a, .td-related-title .td-cur-simple-item, .woocommerce div.product .woocommerce-tabs ul.tabs li.active, .woocommerce .product .products h2:not(.woocommerce-loop-product__title), .td-theme-wrap .td_block_template_2 .td-block-title > *, .td-theme-wrap .td_block_template_3 .td-block-title > *, .td-theme-wrap .td_block_template_4 .td-block-title > *, .td-theme-wrap .td_block_template_5 .td-block-title > *, .td-theme-wrap .td_block_template_6 .td-block-title > *, .td-theme-wrap .td_block_template_6 .td-block-title::before, .td-theme-wrap .td_block_template_7 .td-block-title > *, .td-theme-wrap .td_block_template_8 .td-block-title > *, .td-theme-wrap .td_block_template_9 .td-block-title > *, .td-theme-wrap .td_block_template_10 .td-block-title > *, .td-theme-wrap .td_block_template_11 .td-block-title > *, .td-theme-wrap .td_block_template_12 .td-block-title > *, .td-theme-wrap .td_block_template_13 .td-block-title > span, .td-theme-wrap .td_block_template_13 .td-block-title > a, .td-theme-wrap .td_block_template_14 .td-block-title > *, .td-theme-wrap .td_block_template_14 .td-block-title-wrap .td-wrapper-pulldown-filter .td-pulldown-filter-display-option, .td-theme-wrap .td_block_template_14 .td-block-title-wrap .td-wrapper-pulldown-filter .td-pulldown-filter-display-option i, .td-theme-wrap .td_block_template_14 .td-block-title-wrap .td-wrapper-pulldown-filter .td-pulldown-filter-display-option:hover, .td-theme-wrap .td_block_template_14 .td-block-title-wrap .td-wrapper-pulldown-filter .td-pulldown-filter-display-option:hover i, .td-theme-wrap .td_block_template_15 .td-block-title > *, .td-theme-wrap .td_block_template_15 .td-block-title-wrap .td-wrapper-pulldown-filter, .td-theme-wrap .td_block_template_15 .td-block-title-wrap .td-wrapper-pulldown-filter i, .td-theme-wrap .td_block_template_16 .td-block-title > *, .td-theme-wrap .td_block_template_17 .td-block-title > * {
color: #4f1780!important;
}
/* widget title underline color start */
body .block-title {
border-color: #523F6D;
}
/*latest answer category */
.td-subcat-filter .td-subcat-list a{color:black!important;}
/* block navigation arrow color */
.td-next-prev-wrap a {color:black!important;}
.entry-crumbs a {
color: black;
}
.entry-crumbs {
color: black;
}
/* Keeps main menu logo from screwing up in tablet view */
@media (max-width: 1018px) and (min-width: 768px) {
.td-header-style-6 .td-container {
width: 100%;
}
.sf-menu>li>a {
padding: 0 8px;
}}
/* Remove extra whitespace around footer */
.td-main-content-wrap{ padding-bottom:0; }
/*Remove extra purple space in purple footer */
.td-footer-template-14 .td-footer-bottom-full{ padding-top: 0; }
.td-footer-bottom-full .td-pb-row>.td-pb-span3 {
margin-bottom: 0px;
}
/* reduce padding under purple header main menu REMOVED 9/4/18
.home .td-main-page-wrap {
padding-top: 1px;
}
*/
/* Hide ABOUT US in the footer */
.td-footer-wrapper .block-title span{ display:none }
/* Spacing between sharing buttons and content */
.td-post-sharing-top {
margin-bottom: 5px;
}
/* Spacing between Facebook like button and social media sharing icons */
.td-post-sharing-classic + .td-post-sharing {
margin-top: 20px;
}
/* COMMENT Font */
#reply-title{font-family: Verdana;}
/* WP Discuz LEAVE A REPLY Font
#wc-comment-header{font-family: Verdana;} */
/* WPForms font color */
div.wpforms-container-full .wpforms-form .wpforms-title {
color: #007acc;
}
I want to remove the comment box – 
I have two ‘Share this’ spots near the bottom of my blog post page. One above the footer and one below. I am unable to edit them in the post page or in the footer page. I have deleted every thing on the page and tried to load new templates, but they remain in the same spot. How can I remove these?
Hi there,
My website uses pages instead of posts and I would like to show author info at the bottom and meta information at the top. I also need to keep these as pages. I tried inserting the tagDiv composer block at the bottom, but this made the page look strange (full width without formatting) and also removed the sidebar which I require.
Basically I would like the exact functionality of a post with the ‘by author, date and comments’ meta at the top and then the author box at the bottom which links to their own individual author page with all their authored pages.
Please can you assist me with this. I’m surprised this functionality is so difficult to implement. Is there a shortcode I can potentially copy into every page at the bottom and top or a plugin you recommend using? (only inserting on pages with authored content – not pages such as the about, contact, categories).
Thanks
Hi,
You have set in the bottom of article an ad, and the image/banner that is in that ad is not longer in your media file, in order to remove it please change the src for image or remove the code from bottom ad -> https://www.screencast.com/t/EvQps3k1
Thank you!
Hello,
I am facing the following issue in my blog that I am unable to either remove or edit with TD Composer – please let me know how it can be fixed:
[tdb_loop modules_on_row=”eyJhbGwiOiI1MCUiLCJwaG9uZSI6IjEwMCUifQ==” modules_gap=”eyJsYW5kc2NhcGUiOiI0MCIsInBvcnRyYWl0IjoiMjgifQ==” modules_category=”image” show_excerpt=”none” show_btn=”none” ajax_pagination=”load_more” custom_title=”LATEST ARTICLES” limit=”6″]
You can have a look by scrolling to the bottom of the page here – blog.flock.aero
Appreciate your help and assistance!
Hi!
I’ve built many pages before and I cannot understand what is happening this time. Perhaps it is due to the new version?
I’m running Newspaper v 9.6
I’ve made an entire page, saved it in TD composer, then saved it and the message came saying “successfully saved”
But when I try to go back, then TD Composer shows a completely empty page!
Looking at the bottom of the page, I see that the code (which usually appears in the editor area of the traditional page composer) still figures in “Custom Fields” “tdc_content” (I have copied the code below)
But there is also a 1 in “tdc_dirty_content”
Could you help please? I’ve already tried to make the same page again, unsuccessfully.
Here is the code:
[tdc_zone type=”tdc_content” tdc_css=”eyJhbGwiOnsibWFyZ2luLXRvcCI6Ii01MCIsImRpc3BsYXkiOiIifX0=”][vc_row tdc_css="eyJhbGwiOnsiYmFja2dyb3VuZC1jb2xvciI6IiM1ZmFiZDMiLCJkaXNwbGF5IjoiIn19" full_width="stretch_row"][vc_column width="2/3"][td_block_text_with_title h_color=”#ffffff”]<h1>IRRI Survey 2019 – The Nordic Cut</h1>[/td_block_text_with_title][td_block_text_with_title h_color=”#ffffff” f_post_font_family=”521″ post_color=”#000000″]<p>IRRI stands for Independent Research in Responsible Investment Survey.<br />It is the globally-authoritative annual Survey of leadership in SRI & corporate governance.<br />In 2018, more than 1,100 industry professionals from 43 countries participated.</p><p>This year, NordSIP is proud to partner with IRRI and in particular, to be able to deliver the Nordic Cut, a series of category results tailored to the Nordic market.</p>[/td_block_text_with_title][/vc_column][vc_column width="1/3"][vc_single_image media_size_image_height="983" media_size_image_width="995" image="10454" height="220" width="70%" tdc_css="eyJhbGwiOnsibWFyZ2luLXRvcCI6IjIwIiwiZGlzcGxheSI6IiJ9fQ=="][/vc_column][/vc_row][vc_row][vc_column width="1/3"][td_block_text_with_title f_post_font_family=”521″ f_post_font_size=”14″ f_post_font_line_height=”1.4″]<h2>Why vote?</h2><p>Completing this survey benefits:</p><p>Individuals:<br />… because survey completers receive a free copy of the results that relate to them and their firm (non-completers only headline rankings)</p><p>Firms:<br />All asset managers and asset owners: … because it presents research providers with a globally-comprehensive picture of what asset managers need; this, in turn, leads to more focused research and more tailored client service</p><p>All companies: … because it enables them to influence the shape of the communications that they have with SRI & CG research providers; to commend good practice and to encourage changes to inefficient or other poor practices.</p><p>All sell-side brokers: … because it allows them to showcase their own research product, to flag areas for partnership with independents and to reinforce messages to asset managers about their own business model and the commission allocation process</p><p>All SRI & CG research providers: … because it allows them to showcase their capabilities, to reward clients and to shape how companies, clients and other counter-parties deal with them.</p><p>The whole SRI & CG industry:<br />… because a transparent flow of practitioner-led information up and down the value chain improves the focus and quality of research</p><h3>Any more incentives?</h3><p>As an extra incentive, everyone who participates in the Survey will receive a modest weighting of votes towards their position on the ranking of industry influence.</p>[/td_block_text_with_title][/vc_column][vc_column width="1/3"][td_block_text_with_title f_post_font_family=”521″ f_post_font_size=”14″ f_post_font_line_height=”1.4″ f_list_font_size=”14″]<h2>Who can vote?</h2><p>Anyone with a current professional exposure to the Sustainable & Responsible Investing & Corporate Governance value chain can vote!</p>
- Employees of asset managers
- Asset owners
- Investment consultants
- Sell-side analysts
- Independent research providers
- The IR & CSR directors of quoted companies
- Consultants
- Industry experts
<h3>How long does it take?</h3><p>The Survey takes about 10 minutes to complete.</p><h3>Who voted in 2017?</h3><p>Over 1,100 industry professionals from across the value chain.</p><h3>Organisations or individuals?</h3><p>Individuals should vote in a personal capacity. Each individual’s vote counts the same. The Survey does not accept ‘team votes’. Our aim is to understand the specific day-to-day needs and opinions of practitioners not the policy positions of organisations.<br />Isn’t it just a popularity contest?</p><p>The results from previous years show that the successful firms and analysts are those that combine:</p>
- high-quality research, investment practice and service delivery throughout the year with
- good client relationships … that enable them to pick up the phone and encourage a client to vote.
<p>Being popular isn’t enough on its own; being clever isn’t enough … but people and firms that can combine the two …</p><h3>When will the results be announced?</h3><p>The results of IRRI 2019 will be announced on 3 June via various industry events and social media channels. </p><p>The Nordic Cut will be announced by NordSIP.</p><h3>Are responses confidential?</h3><p>We disclose the fact that you have voted … (to show that you have contributed to the development of standards within the industry).<br />We will never disclose (…to anyone … ever) how you have voted.</p><p> </p>[/td_block_text_with_title][/vc_column][vc_column width="1/3"][td_block_text_with_title f_post_font_family=”521″ f_post_font_size=”14″ f_post_font_line_height=”1.4″]<h2>What’s new this year?</h2><p>As in previous years, IRRI remains a 360° review of industry leadership and focuses on the economics and dynamics of sustainable investment and corporate governance. A few crucial amendments in this year’s edition are designed to sharpen the survey’s focus further.</p><h3>The 2019 Survey is shorter</h3><p>The 2019 Survey is 11% shorter than in 2017 and should take an average of 10 minutes to complete. We are very conscious of the pressure on the time of industry professionals and keen to minimise our demand on it.</p><h3>Interface with the Extel Survey</h3><p>To reflect the movement of SRI & corporate governance towards mainstream investment, the IRRI Survey runs concurrently with the main Extel Survey of European Equity investment. This allows to combine answers to relevant questions across the two surveys (thereby deepening the response dataset to both). It also sets the IRRI results within better market context (e.g. the ability to weight response by AuM as well as deliver them in absolute numbers)</p><h3>New categories for research providers</h3><p>We have extended the opportunity to recognise research leadership in climate change research and have introduced new specialist categories for:</p>
- The best credit ratings agency for integrating sustainability or corporate governance factors into their research and ratings?
- The best specialist provider of single-subject-focused sustainability research (excl. climate change)?
<h3>Retained focus on leadership | Increased depth on economics and impact</h3><p>After the success the IRRI survey delivered last year in getting beyond the ‘usual suspects of the sustainable investment conference circuit’ and recognising some of the people who really make our value chain tick, we have retained the question on: Which individual made the most positive overall contribution to sustainable investment or corporate governance during 2018?</p><p>The survey also increases the depth to the questions asked about the needs of and resources applied by asset owners and asset managers. It also contains more direct questions to providers about whether asset managers are doing what they say they are.</p><p>Finally, a new ranking for the best provider of impact measurement services is available, in recognition of the growing significance of this service category in the market.</p><h3>New insights for companies</h3><p>The question about investor demands on companies is tighter and the survey introduces a feature that enables companies to ask focused questions about SRI & corporate governance with a commitment that we will source them a tailored answer.</p><p>… and yet it’s still shorter… !</p><p>… because other questions have disappeared. If they didn’t deliver the highest levels of insight possible on a relevant subject, they have not made the cut.</p>[/td_block_text_with_title][/vc_column][/vc_row][/tdc_zone]
Hi,
The multi-purpose plugin was removed and included in the tagDiv composer plugin, this happened in theme update 8.7.5, please check the changelog at the bottom of this page
– https://themeforest.net/item/newspaper/5489609
– https://www.screencast.com/t/cql6czdT
So no need to keep trying to activate the plugin if you use a theme version newer than 8.7.5, the multi-purpose plugin and the tagDiv composer were combined. All the multi-purpose options are now part of the tagDiv composer.
Please check the system status parameters and increased all of these according to our guide from here -> https://forum.tagdiv.com/requirements-for-newspaper/
Also you can make a full backup to your website an make a theme update -> https://forum.tagdiv.com/how-to-update-the-theme-2/
If there is still a problem, you can send us an email at contact@tagdiv.com and provide admin login, as well as cPanel or FTP if possible. We will take a look. Include a link to this topic in the email.
Thank you for your understanding!.
Could be a matter of insufficient memory – https://forum.tagdiv.com/requirements-for-newspaper/
Try to increase it to 256M if possible. Also check the other requirements, note the code mentioned at the bottom of the guide as well.
These would be the most common causes for composer problems
– https://forum.tagdiv.com/tagdiv-composer-not-working/
If you want us to take a look, send us an email at contact@tagdiv.com and provide admin login. Include a link to this topic in the email.
For the default tag template, I could give you a code to remove the breadcrumbs
.tag .entry-crumbs {
display: none;
}
The “Tag” and “:” could be removed from here – http://prntscr.com/mybtn5 This should be able to achieve through a child theme if you use it.
Hi,
I have checked your website and I saw that your post sidebar is following down at the bottom of your website. Also, I have noticed that you are using some untested plugins which might interact with the theme core files and causes a lot of unknown issues. Please remove all of these, clear all the caches, purge CDN file and also, update the theme via FTP way to the latest version of it which is 4.7. Check here -> https://www.screencast.com/t/hmFvM0f6p Please notice that the first step for WordPress debugging is to disable all of these untested plugins. If the problem is still there after this, please send us an email at contact@tagdiv.com with your log-in information (wp-admin) so we can further investigate it closer your setup page. Also, provide CPanel access for more further investigations.
Thanks for your understanding!
Also, I’ve activated the tagDiv Speed Booster plugin. Yet its description reads, “Speed booster for Newspaper 7 and Newsmag 3 themes – It moves the styles and all the scripts of the theme to the bottom when needed. It activates internal theme optimizations for better speed and it adds async js. Version 4.9.1 | built on 06.02.2019 12:12 | By tagDiv | Visit plugin site.”
Since this is Version 9.5, this plugin is no longer required, right?
Hello Support Staff,
How to relocate/shift/move forward and backwards arrows from bottom of the block to its header (at the right side)?
Please see: https://prnt.sc/mrbm5g
Regards.
I have just decided to switch to your theme for my second site as well so I bought a second license. I have Elementor pages that work fine. However, when I activate my Elementor Pro header I get this error below the footer of each page. How can this be fixed?
Second question, how can I remove the page title from the left corner of each page?
“Fatal error: Uncaught ErrorException: td_js_buffer::add_to_footer – the header JS was already rendered when you called td_js_buffer::add_to_footer() (ex: was called to late) in /home/techsiti/public_html/thesmarthomer.com/wp-content/themes/Newspaper/includes/wp_booster/td_js_buffer.php:48 Stack trace: #0 /home/techsiti/public_html/thesmarthomer.com/wp-content/themes/Newspaper/includes/wp_booster/td_wp_booster_functions.php(1167): td_js_buffer::add_to_footer(‘\n\t\r\n\r\n\t\t(functi…’) #1 /home/techsiti/public_html/thesmarthomer.com/wp-includes/class-wp-hook.php(286): td_bottom_code(”) #2 /home/techsiti/public_html/thesmarthomer.com/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #3 /home/techsiti/public_html/thesmarthomer.com/wp-includes/plugin.php(465): WP_Hook->do_action(Array) #4 /home/techsiti/public_html/thesmarthomer.com/wp-includes/general-template.php(2684): do_action(‘wp_footer’) #5 /home/techsiti/public_html/thesmarthomer.com/wp-content/themes/Newspaper/footer.php(110): wp_footer() #6 in /home/techsiti/public_html/thesmarthomer.com/wp-content/themes/Newspaper/includes/wp_booster/td_js_buffer.php on line 48″
I have sent an email to contact@tagdiv.com with your login information.
The problem can be seen any of a post page under my website.
When I added the css code you supplied,
article bottom ad fixed, but footer top ad and custom style ad 1 moves to the right.
https://www.letterofcredit.biz/index.php/2018/10/05/swift-messages-in-letters-of-credit/
Right here I copied the code from td_module_single.php (includes/modules/td_module_single.php) *I’m not a programmer to understand all of that*
<?php
/**
* Class td_module_single
*/
class td_module_single extends td_module_single_base {
function get_social_sharing_top() {
if (!$this->is_single) {
return;
}
if (td_util::get_option(‘tds_top_social_show’) == ‘hide’ and td_util::get_option(‘tds_top_like_show’) != ‘show’) {
return;
}
$buffy = ”;
// @todo single-post-thumbnail appears to not be in used! please check
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $this->post->ID ), ‘single-post-thumbnail’ );
$buffy .= ‘<div class=”td-post-sharing-top”>’;
if( td_util::get_option(‘tds_top_like_show’) == ‘show’ && td_util::is_amp() === false ) {
$buffy .= ‘<div class=”td-post-sharing-classic”>’;
$buffy .= ‘<iframe frameBorder=”0″ src=”‘ . td_global::$http_or_https . ‘://www.facebook.com/plugins/like.php?href=’ . $this->href . ‘&layout=button_count&show_faces=false&width=105&action=like&colorscheme=light&height=21″ style=”border:none; overflow:hidden; width:105px; height:21px; background-color:transparent;”></iframe>’;
$buffy .= ‘</div>’;
}
if (td_util::get_option(‘tds_top_social_show’) != ‘hide’) {
$share_text_show = false;
if (td_util::get_option(‘tds_top_like_share_text_show’) == ‘show’) {
$share_text_show = true;
}
if ( td_util::is_amp() ) {
$enabled_services = td_api_social_sharing_styles::_helper_get_enabled_socials();
$amp_services = array_slice( $enabled_services, 0, 5);
$buffy .= td_social_sharing::render_generic(array(
‘services’ => $amp_services,
‘style’ => ‘style1’,
‘share_text_show’ => false,
‘el_class’ => ”
), ‘td_social_sharing_article_top’);
} else {
$buffy .= td_social_sharing::render_generic(array(
‘services’ => td_api_social_sharing_styles::_helper_get_enabled_socials(),
‘style’ => td_options::get(‘tds_social_sharing_top_style’, ‘style1’),
‘share_text_show’ => $share_text_show,
‘el_class’ => ”
), ‘td_social_sharing_article_top’);
}
}
$buffy .= ‘</div>’;
return $buffy;
}
function get_social_sharing_bottom() {
if (!$this->is_single) {
return;
}
if (td_util::get_option(‘tds_bottom_social_show’) == ‘hide’ and td_util::get_option(‘tds_bottom_like_show’) == ‘hide’) {
return;
}
$buffy = ”;
// @todo single-post-thumbnail appears to not be in used! please check
$image = wp_get_attachment_image_src( get_post_thumbnail_id( $this->post->ID ), ‘single-post-thumbnail’ );
$buffy .= ‘<div class=”td-post-sharing-bottom”>’;
if( td_util::get_option(‘tds_bottom_like_show’) != ‘hide’ && td_util::is_amp() === false ) {
$buffy .= ‘<div class=”td-post-sharing-classic”>’;
$buffy .= ‘<iframe frameBorder=”0″ src=”‘ . td_global::$http_or_https . ‘://www.facebook.com/plugins/like.php?href=’ . $this->href . ‘&layout=button_count&show_faces=false&width=105&action=like&colorscheme=light&height=21″ style=”border:none; overflow:hidden; width:105px; height:21px; background-color:transparent;”></iframe>’;
$buffy .= ‘</div>’;
}
if (td_util::get_option(‘tds_bottom_social_show’) != ‘hide’) {
$share_text_show = false;
if( td_util::get_option(‘tds_bottom_like_share_text_show’) == ‘show’ ) {
$share_text_show = true;
}
if ( td_util::is_amp() ) {
$enabled_services = td_api_social_sharing_styles::_helper_get_enabled_socials();
$amp_services = array_slice( $enabled_services, 0, 5);
$buffy .= td_social_sharing::render_generic(array(
‘services’ => $amp_services,
‘style’ => ‘style1’,
‘share_text_show’ => false,
‘el_class’ => ”
), ‘td_social_sharing_article_bottom’);
} else {
$buffy .= td_social_sharing::render_generic(array(
‘services’ => td_api_social_sharing_styles::_helper_get_enabled_socials(),
‘style’ => td_options::get(‘tds_social_sharing_bottom_style’, ‘style1’),
‘share_text_show’ => $share_text_show,
‘el_class’ => ”
), ‘td_social_sharing_article_bottom’);
}
}
$buffy .= ‘</div>’;
return $buffy;
}
}
Guys need your help

