If someone is reading this post and want to experiment with autor pic. You can also try following custom CSS code:
.author-box-wrap .avatar {
border-radius: 100%;
border: 5px solid #FFF;
-moz-box-shadow: 0 1px 3px 0 rgba(5,5,5,0.25);
-webkit-box-shadow: 0 1px 3px 0 rgba(5,5,5,0.25);
box-shadow: 0 1px 3px 0 rgba(5,5,5,0.25);
}
This will create a nice white border around your author.
NOTE: this will not change the pic styling in comments section, the above code is only for single post author pic.
Try and see.
If someone knows which section I need to add code to change the style of comments avatar, please do share
Regards
Siraj
Hi,
Please try this custom css – http://screencast.com/t/iQ3vrHns
.author-box-wrap .avatar {
border-radius: 100%;
-webkit-box-shadow: -1px 2px 7px 4px rgba(0,0,0,0.75);
-moz-box-shadow: -1px 2px 7px 4px rgba(0,0,0,0.75);
box-shadow: -1px 2px 7px 4px rgba(0,0,0,0.75);
}
Thanks!
Thank you Alin.
I was asking about the Author PIC in POST. Not meta info Avatar. Will the same code works for even in Author Box.
Or shall I make changes at .author-box-wrap .avatar ?
Regards
Siraj
Hi,
You can add border radius to the author image and also a shadow, for example – http://screencast.com/t/02GkiQq8mE2z
.td-module-meta-info .avatar {
border-radius: 100%;
-webkit-box-shadow: -1px 2px 7px 4px rgba(0,0,0,0.75);
-moz-box-shadow: -1px 2px 7px 4px rgba(0,0,0,0.75);
box-shadow: -1px 2px 7px 4px rgba(0,0,0,0.75);
}
Thanks!
This is a problem we are encountering when adding Twitter to User accounts. We’ve used
@userstwitterhandle
userstwitterhandle
https://twitter.com/userstwitterhandle
When saving the theme bumps all of these but
userstwitterhandle
This works fine in the icons that appear in the Author box at the bottom of Posts.
When on the “Author” page, hovering on the Twitter icon under the User’s profile shows this address:
http://comptonherald.com/author/joe-richardson-esq/joespeak and clicking this link leads to a 404 page.
btw, you can turn “off” plugins you’re not using until you need them, like regenerate thumbnails. If you’re using the optimization code in the functions.php file you might not need the EWWW plugin. You may not need retina 2x if you start with 640xXX images to begin with, since on mobile they are reduced, but denser, and so make “new version for retina” redundant. If you can live with built-in author box, consider not using the author box pro plugin and modify the file for built-in function.
You can streamline a bit more, probably. But good choices on the line-up 😉
Hi Cris I really thank you ;). The easiest way is to use copy-paste :).
This was my first encounter with functions.php. Thanks for the helpful tips.
To protect the site I uses Wordfence. Do you have any advice.
My main problem is the slow background. I welcome any suggestion.
My plugins:
AdRotate by Arnan de Gans of AJdG Solutions – 3.11.7
Advanced Access Manager by Vasyl Martyniuk – 2.8.6
Calendarize it! for WordPress by Alberto Lau (RightHere LLC) – 3.4.2.60206
Web 2.0 Directory plugin by Mihail Chepovskiy – 1.9.5
Contact Form 7 by Takayuki Miyoshi – 4.2.2
Cookie Law Info by Richard Ashby – 1.5.3
Custom Sidebars by WPMU DEV – 2.1.0.2
Easy Social Share Buttons for WordPress by CreoApps – 3.1
CM Tooltip Glossary by CreativeMindsSolutions – 3.1.9
EWWW Image Optimizer by Shane Bishop – 2.5.0
WPBakery Visual Composer by Michael M – WPBakery.com – 4.6.2
Layered Popups by Halfdata, Inc. – 4.74
Magic Answers by Nicola Franchini – 1.3
MS Custom Login by Mignon Style – 0.8
Post Duplicator by Metaphor Creations – 2.5
Regenerate Thumbnails by Viper007Bond – 2.2.4
Simple Local Avatars by Jake Goldman, 10up – 2.0
Testimonials Showcase by Carlos Moreira – 1.2.3
Video Blogster Pro by Super Blog Me – 2.4.0
Wordfence Security by Wordfence – 6.0.15
Yoast SEO by Team Yoast – 2.3.4
WP Author Box Pro by phpbits – 2.0.4
WP Retina 2x by Jordy Meow – 3.4.6
WP Rocket by WP Rocket – 2.6.7
MailPoet Newsletters Premium by MailPoet – 2.6.15
MailPoet Newsletters by MailPoet – 2.6.16
Hi,
1. Please try to resave permalinks – http://screencast.com/t/1LxbWjiPdJ
2. You can translate it from Theme Panel > Translations – http://screencast.com/t/F44iVJfU19iK
3. Not sure what you mean, please provide more details. The author box is added in the post template – http://screencast.com/t/cJaLOBVV1 and this is the function that’s handles it – http://screencast.com/t/eemfhAdXVYl9
The author page use the author template – http://screencast.com/t/5Igs28tEh
4. Unfortunately we did not do any comparative tests, so I cannot make any recommendations regarding this, maybe it is someone on the forum and can provide a feedback.
Thanks!
Thank you Alin for such a helpful reply!
I have a few questions too.
1. Custom Category Pages doesnt work for me, when i click on category it gives me a Error 404 page.
2. Where to find Breacrumbs to rename the “Home”
3. Is it possible to give an author name on author page like it is on singular article. i mean when author name is in author box not in outside.
4. Whats the best security and backup plugin that suits Newspaper theme? i’m about to use iThemes security and Vaultpress…
Thank you!
Hey, I contacted the author of FeedWordPress yesterday, too. He replied and his solution worked. I post it here for anyone who experiences the same problem:
Hi Rolf!
Thank you for getting in touch. I’m sorry to hear this has been a problem for you. I think that it should be easy to solve; at least, here’s something to try. Let me know if it works for you.
By default, FeedWordPress deliberately tries to protect syndicated posts from being altered by the formatting filters that are applied to locally-authored posts (I’m not positive this is the best default policy; but there are reasons in favor of it and reasons against). In any case, though, this behavior can be turned off by flipping a single setting in the FeedWordPress admin interface.
Here’s how. Log in to your WordPress Dashboard, and then go to FeedWordPress’s Posts & Links settings (Syndication > Posts & Links in the navigation bar on the right hand side of the WordPress admin interface). This should bring up a settings page with a number of panels of settings that control how syndicated posts appear on your website.
Next, scroll down through these settings until you find a panel labeled Formatting. The first setting on this panel should be called Formatting Filters. By default, unless you have altered this setting, it should read “Protect syndicated posts from formatting filters” in the drop-down menu. What you’ll want to do is to pull down the drop-down, and change this setting to “Expose syndicated posts to formatting filters”.
When you are done, scroll down to the bottom to find the blue Save Changes button. Mash that button, clear any page caches or browser caches you may need to clear to make sure you are looking at a fresh copy, and take a look at your website again to see if VC codes are now being applied to syndicated posts.
Note that if you are adding VC codes to syndicated posts by editing them in the WordPress post editor, that when you save changes to a syndicated post you will also need to click the checkbox in the post editor reading “Manual editing,” in order to ensure that the changes that you make won’t be overwritten by FeedWordPress during a later update.
Hope this all helps. Let me know if you have any questions, and let me know how this works for you.
Cheers,
-C
Still no luck.
Here’s the error…
Parse error: syntax error, unexpected $end in /home2/independ/public_html/wp-content/themes/Newspaper/loop-single-7.php on line 43
And here are the blocks of text as they exist now…
<div class=”td-pb-span8 td-main-content <?php echo $td_sidebar_position; ?>-content” role=”main”>
<div class=”td-ss-main-content”>
<?php
locate_template(‘loop-single-7.php’, true);
?>
</div>
</div>
<div class=”td-pb-span4 td-main-sidebar” role=”complementary”>
<div class=”td-ss-main-sidebar”>
<?php get_sidebar(); ?>
</div>
</div>
<?php
break;
case ‘no_sidebar’:
?>
<div class=”td-pb-span12 td-main-content” role=”main”>
<div class=”td-ss-main-content”>
<?php
locate_template(‘loop-single-7.php’, true);
?>
</div>
<?php comments_template(“, true);?>
<?php echo $td_mod_single->get_social_sharing_bottom();?>
<?php echo $td_mod_single->get_next_prev_posts();?>
<?php echo $td_mod_single->get_author_box();?>
<?php echo $td_mod_single->get_item_scope_meta();?>
</footer>
I have a major problem that needs correcting. When I do a search for an author’s name in the search box it seems to ignore the author’s name altogether, as in it doesn’t include anything they’ve written in the search results!
This is a major problem, as you can imagine, as many people come to news sites and search for the person they know who wrote the article (like themselves), rather than the article title. I am really hoping there is an easy fix as really this needs to work for everyone, but at very least we should be able to turn it off and on. Thank you!
Our site is suindependent.com.
This is part of the single template code, found in single_template_#.php and the corresponding loop-single-##.php in the Newspaper theme folder.
single_template_## loads loop-single-##, which has this block:
<?php echo $td_mod_single->get_social_sharing_bottom();?>
<?php echo $td_mod_single->get_next_prev_posts();?>
<?php echo $td_mod_single->get_author_box();?>
<?php echo $td_mod_single->get_item_scope_meta();?>
and single_template_## also has, immediately after loading single-loop-##, this:
comments_template('', true);
Swapping those various lines around would do the trick.
The two robust ways to do this update are via a child theme or via the new theme API.
The theme API is a simple plugin that adds your custom templates, modules, blocks, etc. to the theme panel. I just switched most of my modifications that were in a child theme to the theme API, since child themes come with other complications and potential slowdowns.
https://forum.tagdiv.com/the-theme-api/
In this case, you would (1) create a plugin folder, (2) find the template(s) you want to make this change in and copy both the loop-single-## and single_template_## files for those templates into your plugin folder, (3) edit them to swap the order of those elements, (4) add the code to register them in the main plugin file, and (5) upload and activate the plugin in your dashboard and switch your post templates in the theme panel.
If you wanted to do this via child theme instead, it would be less work but not quite as “robust”, at least in the opinion of some.
https://forum.tagdiv.com/the-child-theme-support-tutorial/
This time you would simply make your child theme as per that tutorial, copy the single templates in there, and edit and upload them and they would invisibly replace the ones that come with the theme.
P.S. Because that comment template code loading is in single_template_##, moving it to loop-single-## might work oddly. Or it might be fine. Haven’t tried it myself.
I would like to change the order in the sub-footer that appears on every post, in that I would like the share box to appear first, then comments, then previous/next article, any other related posts, then author. Can you tell me the best way to do that and ideally a way that wouldn’t get overwritten with an update? Thanks!
My site is SUindependent.com
It works thanks a lot. Of this (https://dl.dropboxusercontent.com/u/22334399/Schermata%202015-08-07%20alle%2013.13.29.png) We can decrease the intensity of black and delete the name of the author of the article?
-
This reply was modified 11 years by
OverPress.
Hi Chris – We do have the option to show “Show Author Under Title” selected to be active (Theme Panel, using Newspaper 4.6.1). Just wondering if there is some other reason why the byline does not appear below the title, although the author box seems to work fine? Thanks!
Hi
You need to edit td_module_single_base.php file and remove the indicated code: http://screencast.com/t/RsTwj8L3Xz This modification will remove the link only from the author box, if you want to remove it from post too: http://screencast.com/t/Z1RX8lStg7U follow this link: http://screencast.com/t/zIlDtxqL2w
Let me know how it goes!
Thanks!
Hi Andrei, thank you for your response.
Maybe I don’t understand something. 6 is already the ID. I’m doing it okei?
This is the code I’m using, when ‘6’ is the ID for the user Ge2k.
if (get_the_author_meta('ID') != 6) {
echo $td_mod_single->get_author_box();
}?>
Thanks again!
Thanks Alin,
1. Ads then use custom 1-5 (I can add adrotate widgets to Newspaper 6 sidebar though too? Any widget can go in your sidebar?
2.
I’ve done that just as you asked:
Deactivated all plugins – cleared all caches
Activated one by one – Result EWWW Image Optimizer causes the class errors (I have left it deactivated but installed) I’m sure I can use an alternative plugin to manage media upload minimise sizes.
Could you look at some CSS for me? Need no ads anywhere at all on ‘All listings’ ‘For rent’ ‘For sale’ and the ‘single listing’ quality
Sorry for the trouble but really want to use theme and the ad thing is a problem for the Real Estate advertisers. You can see how it’s worked on westbridgfordwire.com/for-rent/ with this css from theme author below: I tried the CSS from the WP-Prosperity author below in Newspaper 6 but it wouldn’t do anything
body.single-properties .banner-ad { display:none !important; }
So in the current ‘live’ theme there’s a tick box for remove all ads (I know you don’t have that no worries) – and additional custom CSS to remove header ad
Best wishes
Pat
Hi,
Glad that you have managed to solve this! Visual Composer can be used also on articles, but we recommend to be used on pages as some issues may appear if it is used on posts. Like you already know it can be used for post content(use columns) not for bottom areas like author box, related articles.. The best way is to create your articles without using pagebuilder(use default Visual Editor) so you can manage sidebar like you wish – https://forum.tagdiv.com/post-formats-for-tinymce/
Thanks!
Hi
To hide the author box in post written by a specific author add the above code in loop-single.php file like here: http://screencast.com/t/vNH7beF39oZ and replace the author id number with the one you want to exclude.
To get the author id follow this link: http://screencast.com/t/g8CdLnLvX
Let me know how it goes!
Thanks!
Hi Andrei
I don’t think it was a css problem
I found in your documentation that Visual Composer only works in pages, not in articles!
(https://forum.tagdiv.com/how-to-use-visual-composer/)
So I created a new article with CLASSIC mode (not Backend editor) and then I set up its sidebar in Widget Area.
Now the whole article has the right width, included its bottom sections as author box, related content and comments.
Maybe you can add this information in your documentation so that people know how to create and manage sidebar for articles.
Hi! I was searching for the solution or the best way to do that.
I found in the Nwespaper forum a user that solve this problem using this code in loop_single.php
<?php
if (get_the_author_meta('ID') != 6) {
echo $td_mod_single->get_author_box();
}
?>
This is the post link: Post
Is there a way to do this in Newsmag?
I just want to hide the Author Box in post written by a specific author.
Thank you very much for your help!
Hi Wasi,
We’re sorry for the long delay, we have missed your post by mistake.
I have pasted below the custom css you need to use: http://screencast.com/t/cm61IhjI
@media (max-width: 767px){
.comments, .similar-articles, .author-box-wrap {
display:none!important;
}
}
Sorry for the inconvenience!
Thanks
In your demo in a single post page the bottom sections (author box section + realted article section + comment section) are as wide as the post text above them (2/3 column) and the smart sidebar on the right goes down until the end of the page (1/3 column)
http://screencast.com/t/1DlDGmAL0aQ
In my single post page, instead, the author box section + realted article section + comment section
are always full width,
both if I set the NO sidebar option in post settings: http://screencast.com/t/yn6WdL0mNJ
and if I set the default or right sidebar option: http://screencast.com/t/PyH9O56N3O
But I want the bottom sections are 2/3 wide not full width!
How can I get it?