- NewspaperUser review system
- NewsmagReviews
- NewspaperReviews
- NewspaperCredit System
- NewspaperModules Builder in Newspaper Theme
- NewspaperHow to use the Posts List shortcode
- NewspaperModal Popup
- NewspaperLockers
- NewspaperLeads
- NewspaperFlex Block Settings Guide
- NewspaperSingle Post Shortcodes
- NewspaperDefault Category Settings
- NewspaperCloud Library – Category Templates
- NewspaperBig Grid Flex Settings
- NewspaperMeta Info on Modules and Blocks
- NewspapertagDiv Cloud Library Plugin
- NewspapertagDiv AMP Plugin Tutorial
- NewsmagtagDiv Composer Tutorial
- NewspapertagDiv Composer Tutorial
- TutorialsDefault Block Settings Guide
Hi,
This option is located under the Writing Post Panel in your posts editor panel, like this: http://screencast.com/t/OoO892ccN7V
If you can’t see it please make sure you have it enable from screen option like showed in the screenshot, it should be there.
Please let me know what you find, if you still can’t find it please send me a screenshot with your screen options from your post editor admin panel so I can see this.
Thanks
Debugging, i found out that newspaper theme loads the gallery preview with medium images:
div id=”gallery-1″ class=”gallery galleryid-106504 gallery-columns-5 gallery-size-medium”>
What i need is to load the gallery with thubnails or small size
<div id=”gallery-1″ class=”gallery galleryid-106504 gallery-columns-5 gallery-size-thumbnail”>
Plz help me to find this parameter along theme’s php pages.
BR,
S.
Hi,
I am trying to add a few product reviews to my website, though the review option has disappeared.
This does not appear anywhere now – Just create a post and on Product review section you can create unlimited review criterias and rate it. Also you can write a short review in the Review description box. The theme support 3 types of review like stars, percent and points
COPYING THIS FROM OTHER THREAD FOR THOSE WHO HAVE ASKED ME COUPLE OF TIMES ABOUT REMOVING GOOGLE FONTS FROM FUNCTIONS.php … ref: Newspaper 4.2/4.2.2 — not tested with 4.3, but presumably same idea:
————copied from other thread ————–
Hi,
okay I think in 4.2 here is what my edited functions.php looks like
lines 38 -> 59
/* ----------------------------------------------------------------------------
CSS - front end
*/
function td_load_css() {
//google fonts
if ((defined('TD_DEPLOY_MODE') and (TD_DEPLOY_MODE == 'demo' /*or TD_DEPLOY_MODE == 'dev' */)) or defined('TD_SPEED_BOOSTER')) { //on demo and dev we load only the latin fonts
//modify this collection if you want to optimize the fonts loaded
//collection url -> : http://www.google.com/fonts#ReviewPlace:refine/Collection:PT+Sans:400,700,400italic|Ubuntu:400,400italic|Open+Sans:400italic,400|Oswald:400,700|Roboto+Condensed:400italic,700italic,400,700
//wp_enqueue_style('google-font-rest', td_global::$http_or_https . '://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic|Ubuntu:400,400italic|Open+Sans:400italic,400|Oswald:400,700|Roboto+Condensed:400italic,700italic,400,700'); //used on menus/small text
}
//add the google style link for fonts used by user
$td_fonts_css_files = td_util::get_option('td_fonts_css_files');
if(!empty($td_fonts_css_files)) {
wp_enqueue_style('google-fonts-style', td_global::$http_or_https . $td_fonts_css_files);
}
//bootstrap - custom built - it was generated via compilation of /external/bootstrap-master/less/bootstrap.less
You will note I didn’t remove 44-49, I commented it out with //
I did not remove the code which is there *if* somebody selects fonts from the admin panel, which I think is what you were doing; and then it would crash.
And I DELETED this
$td_user_fonts_list = array();
$td_user_fonts_db = td_util::get_option('td_fonts');
if(!empty($td_user_fonts_db)) {
foreach($td_user_fonts_db as $td_font_setting_key => $td_font_setting_val) {
if(!empty($td_font_setting_val) and !empty($td_font_setting_val['font_family'])) {
$td_user_fonts_list[] = $td_font_setting_val['font_family'];
}
}
}
if(!in_array('g_438', $td_user_fonts_list)) {//'g_438', //Open Sans
wp_enqueue_style('google-font-opensans', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic'); //used on menus/small text
}
if(!in_array('g_617', $td_user_fonts_list)) {//'g_617', //Ubuntu
wp_enqueue_style('google-font-ubuntu', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,300italic,400italic,500italic,700italic&subset=latin,cyrillic-ext,greek-ext,greek,latin-ext,cyrillic'); //used on content
}
if(!in_array('g_453', $td_user_fonts_list)) {//'g_453', //PT Sans
wp_enqueue_style('google-font-pt-sans', td_global::$http_or_https . '://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic&subset=latin,cyrillic-ext,latin-ext,cyrillic'); //used on content
}
if(!in_array('g_445', $td_user_fonts_list)) {//'g_445', //Oswald
wp_enqueue_style('google-font-oswald', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Oswald:400,300,700&subset=latin,latin-ext'); //used on content
}
if(!in_array('g_521', $td_user_fonts_list)) {//'g_521', //Roboto
wp_enqueue_style('google-roboto-cond', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,300,700&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic'); //used on content
}
if(!in_array('g_639', $td_user_fonts_list)) {//'g_639', //Vollkorn
wp_enqueue_style('google-vollkorn', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Vollkorn:400italic,700italic,400,700'); //used on quoates classic
}
}
Hi,
okay I think in 4.2 here is what my edited functions.php looks like
lines 38 -> 59
/* ----------------------------------------------------------------------------
CSS - front end
*/
function td_load_css() {
//google fonts
if ((defined('TD_DEPLOY_MODE') and (TD_DEPLOY_MODE == 'demo' /*or TD_DEPLOY_MODE == 'dev' */)) or defined('TD_SPEED_BOOSTER')) { //on demo and dev we load only the latin fonts
//modify this collection if you want to optimize the fonts loaded
//collection url -> : http://www.google.com/fonts#ReviewPlace:refine/Collection:PT+Sans:400,700,400italic|Ubuntu:400,400italic|Open+Sans:400italic,400|Oswald:400,700|Roboto+Condensed:400italic,700italic,400,700
//wp_enqueue_style('google-font-rest', td_global::$http_or_https . '://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic|Ubuntu:400,400italic|Open+Sans:400italic,400|Oswald:400,700|Roboto+Condensed:400italic,700italic,400,700'); //used on menus/small text
}
//add the google style link for fonts used by user
$td_fonts_css_files = td_util::get_option('td_fonts_css_files');
if(!empty($td_fonts_css_files)) {
wp_enqueue_style('google-fonts-style', td_global::$http_or_https . $td_fonts_css_files);
}
//bootstrap - custom built - it was generated via compilation of /external/bootstrap-master/less/bootstrap.less
You will note I didn’t remove 44-49, I commented it out with //
I did not remove the code which is there *if* somebody selects fonts from the admin panel, which I think is what you were doing; and then it would crash.
And I DELETED this
$td_user_fonts_list = array();
$td_user_fonts_db = td_util::get_option('td_fonts');
if(!empty($td_user_fonts_db)) {
foreach($td_user_fonts_db as $td_font_setting_key => $td_font_setting_val) {
if(!empty($td_font_setting_val) and !empty($td_font_setting_val['font_family'])) {
$td_user_fonts_list[] = $td_font_setting_val['font_family'];
}
}
}
if(!in_array('g_438', $td_user_fonts_list)) {//'g_438', //Open Sans
wp_enqueue_style('google-font-opensans', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic'); //used on menus/small text
}
if(!in_array('g_617', $td_user_fonts_list)) {//'g_617', //Ubuntu
wp_enqueue_style('google-font-ubuntu', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Ubuntu:300,400,500,700,300italic,400italic,500italic,700italic&subset=latin,cyrillic-ext,greek-ext,greek,latin-ext,cyrillic'); //used on content
}
if(!in_array('g_453', $td_user_fonts_list)) {//'g_453', //PT Sans
wp_enqueue_style('google-font-pt-sans', td_global::$http_or_https . '://fonts.googleapis.com/css?family=PT+Sans:400,700,400italic&subset=latin,cyrillic-ext,latin-ext,cyrillic'); //used on content
}
if(!in_array('g_445', $td_user_fonts_list)) {//'g_445', //Oswald
wp_enqueue_style('google-font-oswald', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Oswald:400,300,700&subset=latin,latin-ext'); //used on content
}
if(!in_array('g_521', $td_user_fonts_list)) {//'g_521', //Roboto
wp_enqueue_style('google-roboto-cond', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Roboto+Condensed:300italic,400italic,700italic,400,300,700&subset=latin,cyrillic-ext,greek-ext,greek,vietnamese,latin-ext,cyrillic'); //used on content
}
if(!in_array('g_639', $td_user_fonts_list)) {//'g_639', //Vollkorn
wp_enqueue_style('google-vollkorn', td_global::$http_or_https . '://fonts.googleapis.com/css?family=Vollkorn:400italic,700italic,400,700'); //used on quoates classic
}
}
-
This reply was modified 11 years by
simchris.
Hi,
I will try that code, where should I put it? Btw, I want 300 font weight, not 400. So should I change that “400” value to “300” I’m guessing?
Also, changing the comment section colors using the code you have provided me:
.comment-author .vcard .fn a{color:#00FF00 !important;}
.comment-body p a{color:#C0C0C0 !important;}
.comment-author.vcard .fn a{color:#e29700 !important;}
.comment-author.vcard .fn a:hover{color:#FF0000 !important;}
.comment-list .comment-meta a{color:#303030 !important;}
Does not seem to work.
You can see a live preview of my comment section here: http://leadnr.com/featured/heres-to-a-cool-looking-post-page
Hi,
I have a few problems with the menu:
1. I have the boxed layout, but there are white lines extending from the menu both sides over the bg.
2. The menu items are centered. I have no idea how this happened, but ever since I installed the theme, the items were centered. I would like to have these left aligned.
3. The line underneath the menu items when hovering over an item, is not appearing.
Screenshot of problems: http://prntscr.com/4opmo4
My website: http://www.nonstopdestination.com
I would like to have the menu look like this demo page, boxed, left aligned and line underneath items: http://themeforest.net/item/newspaper/full_screen_preview/5489609
Another problem I’m having is the parallax is not working on the big feature images. Also on the pages where I have the big feature image, there is a space between the menu and the image.
Screenshot of problems: http://prntscr.com/4opmo4
Example page: http://www.nonstopdestination.com/amsterdam-photo-essay/
Any help is greatly appreciated.
Thanks!
Heya,
First of all, I’m far from the most brilliant guy on tagDiv. If I were, we wouldn’t have spent have a dozen posts correcting my tiny mistakes 😉 I’ll give that title to Chris to avoid favouritism among the actual staff…
Your ideal setup definitely requires some custom work that I don’t have time to provide at the moment. I would go to http://studio.envato.com, as tagDiv recommends — or you could do some learning, just like I did, and do it yourself 😀 But I will make a few comments:
Having content in these tabs that differs from post to post means you’ll either need to make extensive use of custom fields, or you could use Visual Composer settings to build the post itself. The question is what are you using the regular post content for? A comment on the phone, for example?
The first option would mean that you’d insert code similar to what I’ve been giving you, and have it appear on every template, using custom fields to determine the content. For example, as you probably know, ACF has a WYSIWYG editor field that you could use for your review. The buy now would not be as easy to automate through such a field, in my opinion (but you may already have a solution and just be looking for how to use tabs for it?).
The second option is that you’d construct these posts in the editor itself using Visual Composer, and then perhaps use custom shortcodes to display the content of your fields.
Or a real developer might suggest some much more sensible solution. :p
But I will give you one last thing, namely a basic tweak of my above code just for your “Features” tab.
The idea is the same. You’re opening up a vc_tabs, you’re opening up a tab, and then you’re looping through features-related fields. It could look like this, with lots of extra comments and line breaks to make it clear for you:
// Update this list using the same format for all the field names you want
$field_names = ['2g_network', '3g_network'];
// Set up tabs
$to_echo = '[vc_row][vc_column width="1/1"][vc_tabs]';
// Set up features tab
$to_echo .= '[vc_tab title="Features" tab_id="features"]';
// Begin a list
$to_echo .= '<ul class="features_list">';
// Loop through the fields
foreach ($field_names as $field_name) {
$data = get_field_object($field_name);
// Check if we have a value and set to a default if not
if ($data['value']) {
$value = $data['value'];
} else {
$value = 'No information on record.';
}
$to_echo .= '<li>' . '<span class="features_label">' . $data["label"] . ': </span>';
$to_echo .= '<span class="features_value">' . $value . '</span></li>';
}
// Close the list
$to_echo .= '</ul>';
// Close the tab
$to_echo .= '[/vc_tab]';
// Close the tab group etc.
$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);
// Output
echo $to_echo;
My note above about only needing to change $field_names applies to this as well.
If you were going to put other tabs in, you would modify the lines that open and close the tab groups, and use those in a similar way. I realize that this is just a simple list and not a table like you wanted — more research would be needed for me to construct a way of getting the label of the field group and such…
Hope that helps. I do think what you need isn’t just “support” but custom work, although it will be fantastic if you can figure the rest out by research, trial and error.
Best of luck!
Hello Tag Div,
I’m writing because I’m trying to use the columns short-code to organize the layout of a timeline. However, it is extremely difficult to do. I can’t make it to have all the text aligned from the top and divided equally. (http://www.calgarianvanguard.com/?p=413&preview=true&preview_id=413&preview_nonce=443e68d94f&post_format=standard)
Is there a way to select the whole text I want to divide, and use a short-code so WordPress divide it equally automatically?
I don’t know If I explain myself. I’m finding very difficult to use column shortcodes for daily use.
Kind regards,
Daniel Rordirugez
Hello!
I think I’ll remove the mega menu form my current setup, however before I’ll do that I want to ask you if I can make it better:
1. Are you aware of a issue with it that only shows the article previews under the “All” tab, but then when I move the mouse below at a category, no previews are shown?
2. Can I somehow get rid of the “All” tab, and show more tabs / subcategories (12 to be exact) in the mega menu ?
Thank you in advance! Multumesc! 🙂
Hello!
I’m using for the categories the slider with the article previews in it, and below the M3 diplay view.
Can that slider have an autoplay – after a number of seconds to automatically change the previewed article?
Thanks! Multumesc 😉
Hello!
For almost all categories I’m using the M3 display view option. But for almost all of them I have 12 posts (fixed number), so I need to show all of them on a page.
What code changes can I make to do this, and always show 6 rows / 12 article previews for the M3 display view option?
Thank you! Multumesc 😉
PS: This is optional, but can I for a specific category even show more posts on that page (but only for that category, for the other the M3 to be the same – 6 rows / 12 article previews)
Hi,
Thanks Christopher!
@xpl0iter This needs to be well implemented as Christopher said it’s not easy it would probably require loading all fonts. I have added this on our feature request list and we will consider this for future updates we have to pick very carefully though what we implement as we have over 150 feature requests, if more people request this we will add it.
Thanks for the suggestion!
Hi,
Unfortunately you can’t add the reviews into the content at the moment the theme dose not have an option for this, to do this you will have to change this function from here
You can also hire a developer to do this for you if you don’t know how to do this. Sorry for the inconvenience, unfortunately we cannot offer custom work as we work hard on the development, updates, fixes and support. You can always get a freelancer from sites like: http://studio.envato.com/ if you don’t know how to do it yourself.
I have added this on out todo list and we will consider this for future updates.
Thanks for the message
Well, that is tricky as it would require loading all those fonts from Google in order to do a preview.
Since the theme uses
1) web safe fonts, which have been around a decade
2) Google fonts easily researched on their site
I don’t see this being implemented.
For web safe fonts, you may find this useful:
http://cssfontstack.com/
For Google fonts, you may find this useful:
https://www.google.com/fonts
The above sites already preview the fonts, and have done so for many years, and are quite a bit more detailed than anything which could be added to the theme panel.
Hope that helped and welcome to the world of web development!
links to examples might be helpful ?
I have no issue with slider set to 12 items as long as I have 12 items set as featured.
Infinite scroll also partially dependent on the web browser, and caching of the browser seeing the page, speed of system to query the dbase, size of images/thumbs being served, etc.
Item 3 not clear what you mean? If you see an image on your page when previewing it, the image would be visible for site visitors viewing post also. You may have a caching problem, if using cache, which is showing image in one view, but not another. Might not apply, but hard to tell without an example 🙂
I know you can move the product review above the content. But I would like the product review to appear in-line with the content and modified so that that text goes around the review (like text would around an image).
Vielen Dank!
Hello,
Today I wanted to change the font of my website without any fonts in particular in my mind. Now needless to say that was a hell of a job trying to figure out which font to use. I had to search each font and see how it looks and come back to the website and then apply it.
So in my opinion you should have a font preview feature. This can be done 2 ways imo.
1. As we select a font, some predefined text will be previewed near the font selection area with the selected font.
2. A dedicated webpage in your website where all the fonts from the theme are listed along with the preview side by side.
Thanks.
Thanks a lot for providing me support that is actually not supported on this forum. 🙂
Actually What i want to achieve this i can explain you in detail.
I want to display a number of fields “labels” along with their data in a column format. Like this image.
But i want to display these all fields,labels, groups( almost 44 fields) under one tab that may be named as Features.
In the second tab i want to display Content that can be named as “Review”. In the Third tab i want to display a gallery. And in the Fourth tab there is a purchase guide named as “buy now”.
Previously i tried a lot to get these working. But failed. And one more thing, i want to create a custom post type “Phones” with a taxonomy “Brands” for it. So, that each time, i don’t have to choose a template for executing these functions. Further whenever there is no content in a field it will not display, If there is no content in a field label, the field label will not show.
Can you please also tell me if i can create a comparison page using these fields. Like if i want to compare iPhone 5 features with iPhone 6. Is it possible with ACF?
Thanks again the most awesome and brilliant guy on TagDiv.
-
This reply was modified 11 years by
tenocation.
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();
}?>
Yes, it’s useful to read the documentation which outlines bow to use W3cache with this theme, if you didn’t already review the thin how-to info:
https://forum.tagdiv.com/w3-total-cache-configuration/
Hello! I just updated the theme to latest version 4.2.2. Now my photos which are hosted on different site are all broken in my posts. They are not aligned anymore! Noe they are placed one after another in column. How can I fix this! I need fix ASAP, because people will leave my site.
Here is the preview of error: http://imgchili.net/show/55117/55117160_error.jpg
I found it’s better to set the three sizes in the WP admin > media sizes to the three sizes you plan to use the most from the modules used by Newspaper.
The regenerate thumbnails plugin is not part of the theme, so likely good idea to review the documentation for that plugin before you use it; also download and backup all your images before you do anything, since you cannot “undo” using it on existing thumbnails. However it doesn’t touch your existing “main” uploaded image.
-
This reply was modified 11 years by
simchris.
Thanks for your reply Lucian, we’re almost there! I’ve removed the lines you advised and the date isn’t showing up anymore in the rich snippet tool.
http://www.google.com/webmasters/tools/richsnippets
unfortunately the date isn’t gone at review articles. Which line do i have to remove to review date (not the stars)
it’s called “meta itemprop=”datePublished” in the source code.
Thanks!