- NewspapertagDiv AMP Plugin Tutorial
- ApiPractical example – How to add a new Block and Module
- NewspaperTrack Subscription Sources with Locker URL in Opt-In Builder
- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- NewspaperCredit System
- NewspaperIntroduction to CPT and ACF with Newspaper Theme
- NewspaperHow to edit modules for Flex Block X
- NewspaperHow to use the Posts List shortcode
- NewspaperUser review system
- NewspaperCustom Fields Support
- NewspaperHow to generate Facebook App ID
- NewspaperHow to insert a block inside the content of a post
- NewspaperModal Popup
- NewspaperPayPal Setup
- NewspaperLink Tracker
- NewspaperLockers
- NewspaperGeneral Options that May Interfere with the Newspaper Theme
- NewspaperAdd Cryptocurrency Price Ticker Widget
- NewspaperPosts Loop Element
- NewspaperThe Newspaper Mobile Theme: Introduction
Hi
You can create a image by 1920x100px for example and set it as logo then use header style 10 which display a full width logo, the result should be like here: http://screencast.com/t/c1UbqDoLoBCs
Hope this helps!
Thanks!
Hello Bogdan,
As I can see here, under your setting – http://screencast.com/t/I2zJ1ylaaRG,the author image thatappears on the front end is the default image you set for the avatar. My website is a multi-author website and all of them showing the default image ( in my case default image is the tomatoheart square logo), not their own image and that’s the issue.
And this is why under both kind of settings, you are able to get the same image. If you really want to understand my issue. Make a different author, upload a different ( different than default image) for the new author and see if you are getting the same result on the front end.
For example- Here is my defualt author image setting setting: https://snag.gy/E0khcp.jpg , this is the setting of a different author Nit: https://snag.gy/sZeJIf.jpg and still this is how I still see the default image on the front end , not her own picture: https://snag.gy/lbhFKQ.jpg
and yes, I will try to implement the code as you said here http://screencast.com/t/CqT6BPe0nJ using Adobe Edge Code CC, which I use. I hope it will work as fine as notepad++
“If for example you have an image inside an h3 tag that will mot likely break the layout as the smartlists need the h3 or the tag you set in order to create the titles.”
This might be the case with me and I will look into it. Thank you for all your valuable inputs 🙂
Cheers!
Hi,
Different smart lists have different implementation. If a html tag is open where the smart list needs to add a title or the post template needs to add a featured image or a different specific element, then it will break on that particular layout. On a different one it maybe does not affect structural elements and the sidebar will not be broken. Try to find the html error and then test different templates again. HTML works in mysterious ways sometimes 🙂
It the smartlist titles you need to be extra careful about. If for example you have an image inside a h3 tag that will mot likely break the layout as the smartlists need the h3 or the tag you set in order to create the titles.
Thanks
Hi team,
We are upgrading Newsmag 3.0 and we have encountered an interesting issue.
Let me tell you what is happening.
We created a new Taxonomy called Lifestyle, and through the VC, the editor can select the type of lifestyle on the listing page.
add_action( ‘admin_init’, array( ‘VisualComposerAddon’, ‘extendLifestyleOptions’ ) );
static public function extendLifestyleOptions() {
// Retrieve all Lifestyle taxonomy
$terms = get_terms( taxonomies\LifestyleTaxonomy::TAXONOMYNAME );
if( !is_wp_error( $terms ) && count( $terms ) > 0 ) {
$dropdown = array(
‘Disabled’ => ‘disabled’,
‘All Lifestyles’ => ‘all’
);
foreach( $terms as $term ) {
$dropdown[“- {$term->name}”] = $term->term_id;
}
// Param to be added
$new_param = array(
‘type’ => ‘dropdown’,
‘heading’ => ‘Filter based on lifestyle’,
‘param_name’ => ‘adv_filtering_lifestyle’,
‘group’ => ‘Filter’,
‘admin_label’ => true,
‘value’ => $dropdown,
‘description’ => __( ‘If selected, will further filter the posts based on the lifestyle.<br/>Select DISABLED to disable the filter.’, ‘vc_extend’ ),
‘save_always’ => true
);
vc_add_param( “td_block_slide”, $new_param);
}
}
We can see the new dropdown being added in the VC. However, during the front-page rendering, the system could not identify “adv_filtering_lifestyle” parameter in shortcode_to_args() function under includes/wp_booster/td_data_source.php
We have never encountered this issue up until Newsmag 2.3.6 – only after upgrading to 3.0, things start to be falling apart.
We do not want to downgrade to 2.3.6 again – as we want to keep up to date.
What possible go wrong. For your information, we have been running a child-theme of Newsmag, and includes/wp_booster/td_data_source.php has been cloned in the child-theme
Edit main height on Newspaper 7 menu style 6 for example see: http://www.awesomescreenshot.com/image/1582029/8aa1a29b601afeed7ae12a03b8f058f7
I’m trying to add a “Time to Read” just above every post and I can’t, for the life of me, get it to work.
I’ve already created the folder under Newsmag’s “js” folder and the readingTime.js file is in there. I also added the necessary “script” code into “footer.php”.
Where I’m stumbling is that I can’t figure out how I need to change the code and where to put it so that “Time to Read: XX (XX Words)” appears in a line just above the body of every post.
Here’s the code I’m working with:
(Added to “functions.php”)
function readingtime_posts() {
if (is_single() && wp_script_is('readingtimejs','done')) {
?><script type="text/javascript">jQuery(document).ready(function($) {
$('.td-post-content').readingTime({
readingTimeTarget: '.reading-eta',
wordCountTarget: '.word-count',
wordsPerMinute: 180,
round: true,
prependTimeString: 'Time to Read: '
});
});</script><?php
}}
add_action('wp_footer','readingtime_posts',100);
(Added into “loop-single.php”)
<?php if (is_single()) {
echo '<div style="clear:both;"><span class="reading-eta"></span> (<span class="word-count"></span> Words)</div>';
}
?>
Here’s a screenshot of where the loop-single.php code is located: https://s10.postimg.org/raid1n9vd/Screen_Shot_2016_09_12_at_7_09_16_PM.png
Please tell me what I’m doing wrong!!!
@Chris S
Sorry to be a little unclear in my last post. So again: When I follow your procedure:
a) delete old version of theme AND the included plugins via FTP
b) install new version of theme in theme folder via FTP
Here I meant: Via FTP I upload the renamed Theme in theme folder. The original Theme Name is “NEWSPAPER” Before I´m able to upload the Theme I have to unzip the Zipped Newspaper theme file. When I´m done with unzip I have the Mains Theme Folder “Newspaper” where all relevant Subfolders and files of these Theme are included.
I meant exactly to rename the unzipped Main Theme Folder “Newspaper” to “WebsiteTheme” for Example.
After I have done this I upload this renamed Main Theme Folder to the WordPress Theme folder.
I don´t want to delete any attributs to the Newspaper Developers with this action. Just to make it harder for Bots to find out by Default which Theme I use. If this bots search for Structures like wp-content/themes/Newspaper then the will not find any files cause I have renamed my Newspaper Main Folder.
Hope it is clear now for what I was asking for 🙂
Sorry, but English is not my native Language.
@ thanop
Thank´s again for your detailed answer 🙂
@ Chris S
Thank´s too for your words about this Issues.
b) Maybe a silly Question – If I nename the Newspaper Folder for Example “WEBSITETHEME” and upload this renamed Theme folder via FTP does this cause any bad Effects (for Example: Path´s inside Newspaper´s Theme Structure – or are this path´s all relative) ? Or should I do it exact the way you have described?
I ask this question just to make it harder for hackers to discover my Themes Structure. As we all know, Newspaper is a most used Template meanwhile…
Thank´s for reply
Using allow_url_fopen=1 is a security risk, so all functions requiring this should be changed to use cURL instead.
For example in includes/wp_booster/td_video_support.php:
REPLACE:
private static function is_404($url) {
$headers = @get_headers($url);
if (!empty($headers[0]) and strpos($headers[0],'404') !== false) {
return true;
}
return false;
}
WITH:
private static function is_404($url) {
$curl = curl_init();
curl_setopt_array( $curl, array( CURLOPT_RETURNTRANSFER => true, CURLOPT_URL => $url ) );
curl_exec( $curl );
$response_code = curl_getinfo( $curl, CURLINFO_HTTP_CODE );
curl_close( $curl );
return ($response_code==404);
}
Ref:
http://stackoverflow.com/questions/127534/should-i-allow-allow-url-fopen-in-php
http://stackoverflow.com/questions/6087222/php-get-headers-alternative
Hello,
You have to create icons with each size mentioned in the theme panel here: http://screencast.com/t/rluHrsBvH
Once you upload each icon size in the theme panel you can access your site from the mobile phone and add the page to the home screen from the browser settings.
Here is an example: https://www.youtube.com/watch?v=x1298MHvtmE and
Thank you!
Hello,
Our theme was designed to work with adsense. But there are a few new releases from adsense we have not yet added implementation for. Our theme is compatible with the standard adsense ad but some ads will require further implementation like the page-level ads for example. they need a piece of code added in header.php. Please provide the tyope of ad you want to implement as maybe it needs extra implementation options than the theme panel ad spot.
Thank you!
Hi, I’ve seen your Mobile Plugin, but in the other hand Google is recommending to use AMP:
https://webmasters.googleblog.com/2016/09/what-is-amp.html
There are available several AMP plugins for WordPress:
https://wordpress.org/plugins/amp/
https://yoast.com/setting-up-wordpress-for-amp-accelerated-mobile-pages/
http://www.techrepublic.com/article/how-to-speed-mobile-page-load-times-with-amp-and-wordpress/
Should I install the Newspaper Mobile plugin or instead install an AMP plugin?
Has anyone experience on this?
A revisit simply because I’m banging my head against a wall!
Let’s take an example:
SDT gives me this – https://search.google.com/structured-data/testing-tool/u/0/#url=https%3A%2F%2Fbiker47.com%2Fhood-jeans-k7-motorcycle-jeans-review%2F
As far as I can see the supplied data is telling Google it’s a review? Can you please check from your perspective that the code is correct?
I appreciate you cannot force Google to do anything, but why would it ‘fail’ if the data is there?
Appreciate your time.
For example, this morning. I saw 1st look five times and 2nd look two times when I checked the website. It seems mobile theme is getting disabled automatically from time to time. What can be the issue? To fix other issues, I already uninstalled and installed the theme few days ago so I dont want to do it again because it causes many issues.
Hi,
How do I enable the android and ios Bookmarks, like this..
http://prntscr.com/59t1ja
Thankyou
Hi
@orlando please check this topic where my colleague Lucian provided a possible implementation: https://forum.tagdiv.com/topic/how-to-hook-hit-counter-into-amp-header/
Thanks!
HI
The theme use a big variety of thumbs so you can try using blocks which display small thumbs, for example block 7 or block 8: http://demo.tagdiv.com/newsmag/block-7/ – http://demo.tagdiv.com/newsmag/block-8/
Other solution involve changes in theme’s core files and you will need some customizations to achieve the desired rezult. Basically you need to define new thumb sizes and to adjust the layout.
If you still need assistance on this please provide more details about what you’re trying to do and also your site url so I can have a closer look and maybe I can hep.
Thanks!
Newspaper has worked well with disqus tha past 3 years. Built in wp comments work well too with no plugin needed except akismet.
However by social comment system, one presumes you mean facebook comments? You can add that but its a little tricky to implement, but luckily you can find examples by searching forum.
Yes, it is correct. You can check the it from this URL http://www.cbc.ca/radio/popup/audio/listen.html?autoPlay=true&clipIds=&mediaIds=2694577829&contentarea=radio&subsection1=radio1&subsection2=currentaffairs&subsection3=the_current&contenttype=audio&title=2016/09/05/1.3748558-ethiopian-marathoner-feyisa-lilesa-says-going-home-means-suicide-after-olympic-political-protest&contentid=1.3748558
Hi,
I would like the code to add to functions.php of the theme Newsmag file to view the visits of my posts AMP.
Waiting for your news about, good job
You have to use a custom style for AdSense code.
If you using responsive code then you can add custom style code.
For example, if you want that your ad to be in square mode, you will have to add the style inline with the specific width and height, like this -> http://prntscr.com/cgu3ay
Colleagues:
I built my blog using the theme travel demo. I left a banner ad, that appears at the top of post pages, as a place holder for later replacement. See example: http://rovertreks.com/escape-to-greece-hidden-beach-getaways-await-you-on-skopelos/
I would like to add a hyperlink to this banner to either a contact form page or payment page so that vendors wishing to purchase ad space can do so.
My question is, where do I find this banner in the theme so I can edit it?
Thanks. Tom
Hello everyone
I’m looking for a way that in one position ( or example “Article Top Ad” ) a larger ads shown on desktop a smaller ads on phones
I need this for the following reason: Adsense has different rules for placing ads on desktop and mobile devices.
Is there any way to do this?
Thank You