- NewspaperAdding Multiple Authors to Your Articles
- NewspaperAuthor Card
- NewspaperMore articles box
- NewspaperIntroduction to CPT and ACF with Newspaper Theme
- NewspaperUser review system
- NewspaperCustom Fields Support
- NewspaperFlex Block Settings Guide
- NewspaperPosts Loop Element
- NewspaperSingle Post Shortcodes
- NewspaperCloud Library Templates
- NewspaperBig Grid Flex Settings
- NewspaperDesign your post pages using the Default Templates
- NewspapertagDiv Cloud Library Plugin
- NewspaperHow to Set the Image Avatar
- NewspaperThe Mobile Theme
- NewspaperReviews
- NewspaperTheme Colors Introduction
- NewspaperGlobal settings
- NewspaperMega Menu
- NewspaperChild Theme Support
@nicoms91 i did not had to change any thing in the loop-single.php,after no one answer me i went and figure it out on my own,and what i done is enable the author box in my post and make sure the name match the one on my google account and in a week all my errors went away…
Yes, just checked your file and the problem is in the context — you forgot to wrap the new code in a <?php> tag. Hence it’s being treated as HTML. Your whole file should look like this:
<?php
/**
* The single post loop for post template 1
**/
if (have_posts()) {
the_post();
$td_mod_single = new td_module_1($post);
//show the breadcrumb
if (get_post_type($post) == 'post') {
echo td_page_generator::get_single_breadcrumbs($td_mod_single->title);
} else {
echo td_page_generator::get_page_breadcrumbs($td_mod_single->title);
}
?>
<article id="post-<?php echo $td_mod_single->post->ID;?>" class="<?php echo join(' ', get_post_class());?>" <?php echo $td_mod_single->get_item_scope();?>>
<header>
<?php echo $td_mod_single->get_title();?>
<div class="meta-info">
<?php echo $td_mod_single->get_category();?>
<?php //echo $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_date(false);?>
<?php echo $td_mod_single->get_commentsAndViews();?>
</div>
</header>
<?php if (!empty($td_mod_single->td_post_theme_settings['td_subtitle'])) { ?>
<p class="td-sub-title"><?php echo $td_mod_single->td_post_theme_settings['td_subtitle'];?></p>
<?php } ?>
<?php
// override the default featured image by the templates (single.php and home.php/index.php - blog loop)
if (!empty(td_global::$load_featured_img_from_template)) {
echo $td_mod_single->get_image(td_global::$load_featured_img_from_template);
} else {
echo $td_mod_single->get_image('art-big-1col');
}
?>
<div class="td-post-text-content">
<?php echo $td_mod_single->get_content();?>
<?php
// Set up your row, column, and tabs element
$to_echo = '[vc_row][vc_column width="1/1"][vc_tabs]';
// Simplest possible example of getting ACF data, sub in yours
$data_1 = get_field('2g_network');
$data_2 = get_field('3g_network');
// Repeat these lines for each tab, making sure each tab has a unique id
$to_echo .= '[vc_tab title="The first tab" tab_id="tab_1"]';
$to_echo .= $data_1;
$to_echo .= '[/vc_tab]';
$to_echo .= '[vc_tab title="The second tab" tab_id="tab_2"]';
$to_echo .= $data_2;
$to_echo .= '[/vc_tab]';
// (You could wrap each block in an if to skip a tab if the data is empty)
// When you have all your tabs, close the elements
$to_echo .= '[/vc_tabs][/vc_column][/vc_row]';
// We have to filter the whole string to make WP interpret the shortcodes
$to_echo = wpb_js_remove_wpautop($to_echo);
// Do whatever
echo $to_echo;
?>
</div>
<div class="clearfix"></div>
<footer>
<?php echo $td_mod_single->get_post_pagination();?>
<?php echo $td_mod_single->get_review();?>
<?php echo $td_mod_single->get_source_and_via();?>
<?php echo $td_mod_single->get_social_sharing();?>
<?php echo $td_mod_single->get_social_like_tweet();?>
<?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>
</article> <!-- /.post -->
<?php echo $td_mod_single->related_posts();?>
<?php
} else {
//no posts
echo td_page_generator::no_posts();
}?>
Hi,
I’m not sure if I understood right what you want, I believe you want that the post author to appear after the date of the post and not at the bottom of the posts where the author box it’s positioned. If this is way you want it please make sure you remove the comment from the loop-single.php and loop-single-1.php files. Edit each file and remove the two slashes “//” like this: http://screencast.com/t/VLf3DkCMw
For the other post style 2/3/4/5 you will have to edit the single_template_2/3/4/5.php files and remove the slashes “//”, like this: http://screencast.com/t/T8R4KFZhhnZl
If you want the author to appear after the date switch the line between them, like this: http://screencast.com/t/VJeSEWnwM4
Then go to td_module.php file and do this: http://screencast.com/t/kIj3H0yWMW like this: http://screencast.com/t/ZzzuRQLpfGG
After this add this custom css in theme panel > custom css field:
.single header .meta-info time {
font-style: normal !important;
margin-right: 0px !important;
}
You should get this result: http://screencast.com/t/58xJxjP1pDUW
You can disable the “author box” on post pages from theme panel > post settings: http://screencast.com/t/GM3BPolH
Hope this helps!
Thanks
Hi,
I wanted to insert the name of the place after the date of the post, and not by the author box, which in realtĂą slows down the site.
How can I make ??
Thank you, Orlando
Hi,
Look at the demo article Author Box. Hover over the Pinterest (and some other) icons. They hyperlink to $sitename$article$pinterestname, instead of $pinterestname
Fix at your convenience, Thanks!
I tried to implement as per your instructions. Please check this screenshot it was with the_field.
I don’t know where i am making a mistake. I again changed the code to get_field and it still remains the same. Here you can see it.
Here is the full code of loop-single-1.php in which i am inserting.
<?php
/**
* The single post loop for post template 1
**/
if (have_posts()) {
the_post();
$td_mod_single = new td_module_1($post);
//show the breadcrumb
if (get_post_type($post) == 'post') {
echo td_page_generator::get_single_breadcrumbs($td_mod_single->title);
} else {
echo td_page_generator::get_page_breadcrumbs($td_mod_single->title);
}
?>
<article id="post-<?php echo $td_mod_single->post->ID;?>" class="<?php echo join(' ', get_post_class());?>" <?php echo $td_mod_single->get_item_scope();?>>
<header>
<?php echo $td_mod_single->get_title();?>
<div class="meta-info">
<?php echo $td_mod_single->get_category();?>
<?php //echo $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_date(false);?>
<?php echo $td_mod_single->get_commentsAndViews();?>
</div>
</header>
<?php if (!empty($td_mod_single->td_post_theme_settings['td_subtitle'])) { ?>
<p class="td-sub-title"><?php echo $td_mod_single->td_post_theme_settings['td_subtitle'];?></p>
<?php } ?>
<?php
// override the default featured image by the templates (single.php and home.php/index.php - blog loop)
if (!empty(td_global::$load_featured_img_from_template)) {
echo $td_mod_single->get_image(td_global::$load_featured_img_from_template);
} else {
echo $td_mod_single->get_image('art-big-1col');
}
?>
<div class="td-post-text-content">
<?php echo $td_mod_single->get_content();?>
// Set up your row, column, and tabs element
$to_echo = '[vc_row][vc_column width="1/1"][vc_tabs]';
// Simplest possible example of getting ACF data, sub in yours
$data_1 = get_field('2g_network');
$data_2 = get_field('3g_network');
// Repeat these lines for each tab, making sure each tab has a unique id
$to_echo .= '[vc_tab title="The first tab" tab_id="tab_1"];
$to_echo .= $data_1;
$to_echo .= '[/vc_tab]';
$to_echo .= '[vc_tab title="The second tab" tab_id="tab_2"];
$to_echo .= $data_2;
$to_echo .= '[/vc_tab]';
// (You could wrap each block in an if to skip a tab if the data is empty)
// When you have all your tabs, close the elements
$to_echo .= '[/vc_tabs][/vc_column][/vc_row]';
// We have to filter the whole string to make WP interpret the shortcodes
$to_echo = wpb_js_remove_wpautop($to_echo);
// Do whatever
echo $to_echo;
</div>
<div class="clearfix"></div>
<footer>
<?php echo $td_mod_single->get_post_pagination();?>
<?php echo $td_mod_single->get_review();?>
<?php echo $td_mod_single->get_source_and_via();?>
<?php echo $td_mod_single->get_social_sharing();?>
<?php echo $td_mod_single->get_social_like_tweet();?>
<?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>
</article> <!-- /.post -->
<?php echo $td_mod_single->related_posts();?>
<?php
} else {
//no posts
echo td_page_generator::no_posts();
}?>
I think the code is not executing. Am i placing it in the wrong way?
OKAY!!!!!!!!!!!!!!!!!
Definitive update on this topic!
Since I have brand new blog (2 posts!) which I setup this weekend, as a migration of an old static section of business website, to a new folder using WP and Newspaper, I was also having issue with Google+ not grabbing photo+summary, and instead only grabbing my author photo + URL or headline.
So, here’s what I did.
I switched from the full width giant photo (style 4), to style 2, with featured image shown; still same problem.
I switched “show featured image off” and *ALSO* switched off the lightbox feature since I don’t use that — remember Google doesn’t like images which are links as they by default presume them to be ads not featured photos when scraping — and then placed my featured image into both of my new posts, and resaved both.
Viola. Went to share both on Google+ and both of my posts from new blog setup dropped in instantly into G+.
example… works!
https://plus.google.com/102627062589158403110/posts/a39F9Lrpa8t
I am not sure whether it’s the featured images outside of post, since I don’t have problem with that on another site with Newspaper; but I am guessing it’s the lightbox under the post settings being on by default that may be the culprit. So try that FIRST (click to off), and see what happens with your G+ shares.
-
This reply was modified 11 years by
simchris.
Wellllllll…. I had trade some posts with RADU on this topic in hopes he might add a custom field on the user page for an author image loaded locally (this can be hacked from the functions.php file; I did this with one of my own responsive themes in 2011 pre-bootstrap which was insane — three column layouts without bootstrap were really a freaking pain for responsive; float right inside a float right … ugh!).
This was on my to do list before I got sick … and was just thinking the same thing 🙂
You would think there would be plugin for this, since really all it takes is adding new field to user meta for each user; then calling that from the theme author box template.
This may be my Labor Day weekend project ! 🙂
example how to on this topic of adding custom user meta
http://justintadlock.com/archives/2009/09/10/adding-and-using-custom-user-profile-fields
in the above case we’d be replacing a twitter field with a user photo field, where we could put in local URL to the user photo (e.g., /uploads/my-name-here_100x100.jpg); then call that in the Newspaper theme.
I didn’t edit the loop_single file but the td_module_blog in /includes/modules/module_modifier/.
I’m still running Newspaper v3.x and not v4 because I didn’t had time to update the theme. I’m running a high traffic site and still don’t have a staging site to update the theme to v4 without interupting traffic :p Anyway, I think the post pages in v4 are still generated by td_module_blog so you should give it a shot!
I don’t know about making custom fields with that plugin, I just followed tagDiv’s recomandations on using that plugin for creating additional custom fields.
When opening td_module_blog.php, look for the line (somewhere around line 600 in my version) that says:
if (empty($hideAuthor)) {
$buffy .= '<div class="author-box-wrap">';
$buffy .= '<a itemprop="author" href="' . get_author_posts_url($author_id) . '">' ;
$buffy .= get_avatar(get_the_author_meta('email', $author_id), '106');
$buffy .= '</a>';
and add and get_field('customfieldname')
Like this (notice i used ‘show_author’ as custom field name):
if (empty($hideAuthor) and get_field('show_author')) {
$buffy .= '<div class="author-box-wrap">';
$buffy .= '<a itemprop="author" href="' . get_author_posts_url($author_id) . '">' ;
$buffy .= get_avatar(get_the_author_meta('email', $author_id), '106');
$buffy .= '</a>';
Make sure your theme settings are set to show author. When the custom field for showing author is checked in a certain post the author box will show up. Hope this helps!
Hi,
Thanks @Christopher!
@SnakeEater
Unfortunately you can’t modify the td_authors.php file using the child theme, you will need to modify the parent theme, you can find here the files that can be changed via child theme: https://forum.tagdiv.com/child-theme-documentation/
Thanks
Thanks for your help Lucian
You need to create a custom field (I use the Advanced Custom Fields plugin for that) called hide_author or show_author. The name doesn’t really matter. Let’s say you use show_author. The default setting now is that it won’t show the author unless the show_author box is checked when creating a post. By default, no author boxes are shown with this setting, but can be enabled for each post by check the new custom field box.
Hi Marius, This last code is not working on my site. Infact it’s showing like this.
if (!get_field(‘hide_author’)) {
Author Box: Here is the author bos with above code and below code displaying on post page.
}
I tried many times to clear render blocking css and JS but not successful. I hope someone here will help me out.
Here is my speedbooster.php file
<?php
/*
Plugin Name: tagDiv speed booster
Plugin URI: http://tagdiv.com
Description: Speed booster for Newspaper theme - It moves the styles and all the scripts of the theme to the bottom. It also activates internal theme optimizations for better speed.
Author: tagDiv
Version: 2.5
Author URI: http://tagdiv.com
*/
/*
* 2.6 - fixed rendering bug on the loading of the page
* 2.5 - code improvements, newspaper 4 compatibility
* - makes most of the javascript files use defer parsing
* - better compatibility with revolution slider
* 2.4 - updated jquery version
* - support for https
* 2.3 - fixed warnings when trying to move javascript files that are not registered
*/
class td_speed_booster {
var $load_contact_form_7 = '';
var $load_google_fonts = '';
var $styles_for_footer = array();
var $async_js_scripts = array(
'contact-form-7',
'bbpress',
'woocommerce',
'site',
'devicepx',
'js_composer_front'
);
function __construct() {
add_action('wp_enqueue_scripts', array($this, 'enqueue_scripts_hook'), 100);
add_action('wp_footer', array($this, 'wp_footer_hook'), 15);
add_action('wp_head', array($this, 'wp_head_hook'), 15);
define('TD_SPEED_BOOSTER' , 'v2.5');
}
function enqueue_scripts_hook() {
global $wp_scripts;
//$this->move_js_to_footer('bp-legacy-js');
//detect revmin - revolution slider and do not move jquery
if( !is_admin() and !isset($wp_scripts->registered['revmin'])){
if (is_ssl()) {
$td_protocol = 'https';
} else {
$td_protocol = 'http';
}
wp_deregister_script('jquery');
wp_register_script('jquery', ($td_protocol . '://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js'), true, '1.11.0', true);
wp_enqueue_script('jquery');
}
//move styles
$this->move_style_to_footer('bbp-default-bbpress'); //bpress old
$this->move_style_to_footer('bbp-default'); //bpress
$this->move_style_to_footer('contact-form-7');
$this->move_style_to_footer('td-bootstrap');
$this->move_style_to_footer('td-theme');
$this->move_style_to_footer('google-font-rest');
$this->move_style_to_footer('woocommerce_frontend_styles');
//jetpack lost styles
$this->move_style_to_footer('jetpack-subscriptions');
$this->move_style_to_footer('jetpack-widgets');
$this->move_js_to_footer('themepunchtools');
$this->move_js_to_footer('revmin');
//bbpress
//remove_action( 'bbp_head', array($BBP_Default, 'head_scripts') );
}
function wp_footer_hook() {
$current_theme_version = '';
if (defined('TD_THEME_VERSION')) {
//get the theme version for style
$current_theme_version = TD_THEME_VERSION;
//on demo mode, autogenerate version hourly + day
if (TD_DEPLOY_MODE == 'demo') {
$current_theme_version = date('jG');
}
}
foreach ($this->styles_for_footer as $style_id => $style_src) {
echo "<link rel='stylesheet' id='" . $style_id . "-css' href='" . $style_src . "?ver=" . $current_theme_version . "' type='text/css' media='all' />\n";
}
}
function wp_head_hook() {
if (defined('TD_THEME_VERSION')) {
echo '<style>body {visibility:hidden;}</style>';
}
}
function move_style_to_footer($style_id) {
global $wp_styles;
if (!empty($wp_styles->registered[$style_id]) and !empty($wp_styles->registered[$style_id]->src)) {
$this->styles_for_footer[$style_id] = $wp_styles->registered[$style_id]->src;
wp_deregister_style($style_id);
}
}
function move_js_to_footer($js_id) {
global $wp_scripts;
if (isset($wp_scripts->registered[$js_id])) {
wp_enqueue_script($js_id, ($wp_scripts->registered[$js_id]->src), '', $wp_scripts->registered[$js_id]->ver, true);
}
}
function async_js_hook($url) {
//check to see if we have js
if (strpos( $url, '.js' ) === false) {
return $url;
}
if ($this->strpos_array($url, $this->async_js_scripts) === false) {
return $url;
} else {
return "$url' defer='defer";
}
}
private function strpos_array($haystack_string, $needle_array, $offset=0) {
foreach($needle_array as $query) {
if(strpos($haystack_string, $query, $offset) !== false) {
return true; // stop on first true result
}
}
return false;
}
}
new td_speed_booster();
And here is my function generated file
registered scripts
common | /wp-admin/js/common.min.js
admin-bar | /wp-includes/js/admin-bar.min.js
utils | /wp-includes/js/utils.min.js
svg-painter | /wp-admin/js/svg-painter.js
wp-auth-check | /wp-includes/js/wp-auth-check.min.js
itsec_file_change_warning_js | http://mydomain.com/wp-content/plugins/better-wp-security/modules/free/file-change/js/admin-file-change-warning.js
itsec_strong_passwords | http://mydomain.com/wp-content/plugins/better-wp-security/modules/free/strong-passwords/js/strong-passwords.js
devicepx | http://s0.wp.com/wp-content/js/devicepx-jetpack.js
wpuf-subscriptions | http://mydomain.com/wp-content/plugins/wp-user-frontend-pro/assets/js/subscriptions.js
wp-color-picker | /wp-admin/js/color-picker.min.js
jquery |
media-upload | /wp-admin/js/media-upload.min.js
thickbox | /wp-includes/js/thickbox/thickbox.js
wpuf-chosen | http://mydomain.com/wp-content/plugins/wp-user-frontend-pro/admin/../assets/js/chosen.jquery.js
wpseo-admin-global-script | http://mydomain.com/wp-content/plugins/wordpress-seo/js/wp-seo-admin-global.min.js
td-wp-admin-general | http://mydomain.com/wp-content/themes/Newspaper/wp-admin/js/general.js
td-wp-admin-panel-js | http://mydomain.com/wp-content/themes/Newspaper/wp-admin/js/wp-admin-panel.js
suggest | /wp-includes/js/jquery/suggest.min.js
registered styles
admin-bar | /wp-includes/css/admin-bar.min.css
colors | 1
ie | /wp-admin/css/ie.min.css
wp-auth-check | /wp-includes/css/wp-auth-check.min.css
itsec_notice_css | http://mydomain.com/wp-content/plugins/better-wp-security/core/css/itsec_notice.css
wp-color-picker | /wp-admin/css/color-picker.min.css
wpuf-chosen-style | http://mydomain.com/wp-content/plugins/wp-user-frontend-pro/admin/../assets/css/chosen/chosen.css
google-font-ubuntu | http://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,300italic,400italic,500italic,700italic&subset=latin,cyrillic-ext,greek-ext,greek,latin-ext,cyrillic
td-wp-admin-td-panel-2 | http://mydomain.com/wp-content/themes/Newspaper/wp-admin/css/wp-admin.css
thickbox | /wp-includes/js/thickbox/thickbox.css
wpalchemy-metabox | http://mydomain.com/wp-content/themes/Newspaper/wp-admin/content-metaboxes/meta.css
ithemes-icon-font | http://mydomain.com/wp-content/plugins/better-wp-security/lib/icon-fonts/icon-fonts.css
bbp-admin-css | http://mydomain.com/wp-content/plugins/bbpress/includes/admin/css/admin.css
jetpack-icons | http://mydomain.com/wp-content/plugins/jetpack/_inc/jetpack-icons.min.css
Here what my pagespeed test suggest
Remove Render Blocking Javascript
http://mydomain.com/wp-includes/js/jquery/jquery.js.pagespeed.jm.ocognCjcS2.js
http://mydomain.com/wp-includes/js/jquery/jquery-migrate.min.js.pagespeed.jm.mhpNjdU8Wl.js
http://maps.google.com/maps/api/js?sensor=true
http://maps.gstatic.com/maps-api-v3/api/js/17/15/main.js
http://mydomain.com/wp-content/plugins/wp-user-frontend-pro/assets/js/frontend-form.js.pagespeed.jm.DduuMTRcHs.js
Optimize CSS Deliver of the following
http://mydomain.com/wp-content/plugins/revslider/rs-plugin/css/W.settings.css,qrev=4.3.8.pagespeed.cf.DyIPD1r_80.css
http://mydomain.com/wp-content/plugins/revslider/rs-plugin/css/W.captions.php,qrev=4.3.8.pagespeed.cf.VUw1T7K7S2.css
http://mydomain.com/wp-content/plugins/wp-user-frontend-pro/assets/css/W.frontend-forms.css.pagespeed.cf.vemqQTxrMU.css
http://fonts.googleapis.com/css?family=Roboto%3A400%2C700
I am also using Dreampress which is on varnish cache. I enabled Page Speed Mod as well. No other caching plugin.
My Page Speed Score is 64 for desktop and 41 for mobile.
Further, Here is what i added in my httaccess
<IfModule pagespeed_module>
ModPagespeed on
ModPagespeedModifyCachingHeaders off
</IfModule>
# BEGIN Expire headers
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 5 seconds"
ExpiresByType image/x-icon "access plus 604800 seconds"
ExpiresByType image/jpeg "access plus 604800 seconds"
ExpiresByType image/png "access plus 604800 seconds"
ExpiresByType image/gif "access plus 604800 seconds"
ExpiresByType application/x-shockwave-flash "access plus 604800 seconds"
ExpiresByType text/css "access plus 604800 seconds"
ExpiresByType text/javascript "access plus 604800 seconds"
ExpiresByType application/javascript "access plus 604800 seconds"
ExpiresByType application/x-javascript "access plus 604800 seconds"
#ExpiresByType text/html "access plus 600 seconds"
#ExpiresByType application/xhtml+xml "access plus 600 seconds"
</ifModule>
# END Expire headers
Now please suggest me what to do for increasing my page speed. My site is damn slow. Please help me to correct the speedbooster.php file as per instructions. Special request ot Christopher for helping me out. Thanks
Hi,
Yes please remove the height you have set before and just use this custom css instead, I have tested it and should solve your issue:
.upme-column-wrap {
display: inline-block;
}
.widget_text {
margin-bottom: 0px !important;
}
Thanks
Some elements in child them won’t over-ride certain custom modules, so to “hack” a new feature into an existing module (not a page template), it requires hacking the parent, unfortunately.
Hi,
I tried to update the td_authors.php in the child theme, but it is not working.
The only way it works is if I edit the file directly in the parent theme. Is there a way to fix this? I don’t like editing the original files.
Cheers!
Steal the position: absolute; from entry-comments-views and give it to your custom class:
header .entry-comments-views {
position: static !important;
}
.my_avatar_box {
position: absolute;
top: auto;
bottom: 0px;
right: 0px;
}
Now that’s the one that’s pushed up against the right side and has the text flow naturally inside it. So echo that around both the new statements and the call to get_commentsAndViews:
<?php echo '<div class="my_avatar_box">';?>
<?php echo get_avatar($post->post_author, '16');?>
<?php echo $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_commentsAndViews();?>
<?php echo '</div>';?>
Note that for a cleaner author output, you could do this for the third line instead:
<?php echo '<a itemprop="author" href="' . get_author_posts_url($post->post_author) . '">' . get_the_author_meta('display_name', $post->post_author) . '</a>';?>
Which I just grabbed from the function get_author in the theme files, and dropped the “by” and the dash on either side.
You have to promise me that you’re learning from this experience :p
Hi,
You can use a plugin like Advanced Custom Fields. You can make it in a similar way like shown here: https://forum.tagdiv.com/topic/function-to-hide-ads-and-function-to-show-author/#post-8993
Or you can use css to hide the ad box on the pages you want using a custom css http://screencast.com/t/YWDlx6Ih79 similar to this:
.postid-4228 .td-a-rec-id-content_top {
display: none;
}
Hope this helps!
Thanks
Hi Lucian,
Thanks for your reply.
The way i added the author box is – http://awesomescreenshot.com/0c53cvqxc2
As each author has his own sidebar, i have just added that to each one, only calling their specific ID.
I see what you mean, when i set a height for that as 493px for example, the whole thing works fine.
Any ideas?
Thanks a lot.
Hi,
I’m not sure how you have added that author box using the text-widget right, from what i have noticed the text-widget which contains the author box is just at the top of the page and dose not stretches to contain the whole author box and the widget from below it’s stretching above the author box, that is why the author box it’s not clickable, you can see this here http://screencast.com/t/dyzhdJJ95t5j
Make sure you have added the widget right, also please make a screenshot of your code added in the text widget and send it, it could help me understand what happened.
You can try to use the css from below to remediate this but I suggest you find what the cause of this and remediate instead using the css to make it right.
.page .span4 .widget_text {
height: 605px !important;
}
Hope this helps!
Thnaks
Hi,
I have an author widget published for each author in the sidebar. However the issue is nothing is clickable, i.e. you can’t click on the number or entries, comments link or their email.
You can see it here – http://goo.gl/zJiavc
Thanks
For the record, this worked perfectly, thank you!
Not all post templates show the captions. (Style 2 does, style 4 doesn’t, haven’t played around with the others.)
I had this same need so I installed the plugin Advanced Custom Fields, added a metabox for photographers, and manually displayed the data saved there after the author. I found this a bit of a complicated process if you’ve never done anything like it and had to do a lot of reading. I can try to walk you through it if you want.
One easy way might be to try a plugin like Better Image Credits, which can take some credit fields and automatically output it at the top or bottom of your post, or other settings.
Thanks, @TheMediumUTM for your help!
Have a nice day! 🙂