- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsOffset Feature
- TutorialsWhat is Ajax preloading?
Hi,
Thanks TheMediumUTM!
@faditayyoun You can achieve this like TheMediumUTM suggested, we will also consider this for future updates.
Thanks for the message!
Hi,
Your problem comes from the permalink structure you are using to access your feed rss. In your case you will access the feed by using this permalink structure: http://screencast.com/t/vlk2l2bE just add this after your site’s URL:
http://example.com/?feed=rss
http://example.com/?feed=rss2
http://example.com/?feed=rdf
http://example.com/?feed=atom
This permalink feed structure is used for custom permalinks: http://screencast.com/t/2EaAn1fvg
Also checked your site and this feed links work just fine: http://screencast.com/t/6A5iWqd8sWwD
You can also read about this here: http://codex.wordpress.org/WordPress_Feeds
Thanks
-
This reply was modified 11 years by
Lucian.
Likely you would go into the loop file for the template you’re using;
e.g., loop-single1.php
comment out or remove this
<?php echo $td_mod_single->get_date(false);?>
Not sure if that is what you want …
Wow… Google thinks your site predates the Internet…
@cstyn
as I said, you need to *choose* which fonts you want to use on your site, as I did with Open Sans. In my examples, you would choose the fonts you want, search/replace those in the stlyes.css file, then grab CSS from Google for those chosen fonts, then put the CSS at bottom of your style.css; then hack the functions.php to no longer pull the stock fonts from Google since you’re loading your custom fonts.
Best to stick with built in theme font selectors, in your case, at this time. If you don’t yet know the purpose of the style.css, then this will be beyond you for the time being.
Best wishes, and sorry I couldn’t make that all any simpler.
You’re using WP SEO plugin. In titles and meta settings, uncheck the box that says “dates in snippet previews” and you’ll be good to go.
Google may be taking it from your feed or sitemap or comments probably :/
I tried to delete all plugins and theme, and reinstall it (the main and the child). I only installed and activated now the Social Counter plugin, but in Facebook and Twitter continues appearing the part that told: if is 15.290, appears 15; if is 7560 appears 7…
If I try with your examples, “McDonalds”, appears in FB counter 44 Fans and on the Twitter appears 2 Followers.
This is important fix for me because I need that function working well.
Regards,
How can I remove date time stamp from entire theme? I don’t want Google to show date in its search result.
I tried following code in functions.php:
/* Start of Remove Date TimeStamp from blog posts */
function remove_post_dates() {
add_filter(‘the_time’, ‘__return_false’);
add_filter(‘get_the_time’, ‘__return_false’);
add_filter(‘the_modified_time’, ‘__return_false’);
add_filter(‘get_the_modified_time’, ‘__return_false’);
add_filter(‘the_date’, ‘__return_false’);
add_filter(‘get_the_date’, ‘__return_false’);
add_filter(‘the_modified_date’, ‘__return_false’);
add_filter(‘get_the_modified_date’, ‘__return_false’);
add_filter(‘get_comment_date’, ‘__return_false’);
add_filter(‘get_comment_time’, ‘__return_false’);
}
add_action(‘loop_start’, ‘remove_post_dates’);
/* End of Remove Date TimeStamp from blog posts */
However, it resulted in weird Jan 1, 1970 date in Google search snippet as shown in below screenshot:
I want to remove date time stamp as shown below screenshot:
http://www.wpsquare.com/wp-content/uploads/2012/07/remove-date-timestamp-google-search-results.png
Please help.
Thanks Christopher ,
do you have samples on how to do pagebuilder blocks which remove the side bar?
Is there a regular way to do custom posts?
Udi
Hi Tagdiv,
I am using the newspaper theme
we have integrated a powerful database engine into our code, but sadly we are unable to use it. no matter what we try and do the theme overrides our design. we have tried all the “regular” tricks like creating a new page template and all fails.
We would like to tweak the Newspaper theme in two ways:
We would like to use a WP Views template for a custom post type and totally overcome the theme’s design for all photographers’ pages. Can you provide the code for such a page template?
We noticed that even if we define a full width design for a specific page, there is still the space for the sidebar on the right, How can we avoid that and have the full width of the page usable?
we are at the point where we really dont know what to do. support has given us some clues but they dont work and we are at a stage that we need coding samples.
Please provide some code samples for us to implement. I think that a good sample would be one that can create a design free page for a page type. we can take it from there.
This is currently the only thing holding us from deployment. so we really need your help on this.
looking forward for you prompt reply
I had the same problem. Here are my steps (I think these are the only two I used, so let me know if it doesn’t work).
1. I edited my single_template_3.php file and moved the <header> content, which originally looked like this:
<header>
...
</header>
</div>
</div>
</div> <!-- close the row from td_page_generator -->
To look like this:
</div>
<header>
...
</header>
</div>
</div> <!-- close the row from td_page_generator -->
Note that I also redid my subtitles using Advanced Custom Fields. The way I did it, I was able to put it under the title in the <header> section. I’m not sure whether yours will end up where you want them.
2. I styled the header using CSS:
.single_template_3 header {
position: static;
}
@media (max-width: 768px) {
.single_template_3 header h1 {
margin-top: 30px;
}
}
This was a few weeks ago now and I don’t quite remember how I determined those style rules, but anyhow, hope it works for you…
Hi Guys,
I’m loving the theme, you can see progress at http://liveconspiracy.com.
I need a small favor, when I create a video post and use “style 3” in post template, the video shows in full width which is nice, however, the post title shows on top of the video. I know this is meant by design as the post title will have to be placed in an image.
I’m suggesting a new post template where you can place a video full width and the title to come before or after. In my humble opinion, this is a must for publishers who use lots of videos and want to make use of this full width feature.
Regards,
Fadi
Hi,
Thanks TheMediumUTM!
@ntoulios88
I might add that if you inspect the menu items you will noticed that each has a unique class, like “menu-item-4630” for example, so you can use that class to style each menu item as you like.
Thanks
Hi,
Move the get_category() function like this: http://screencast.com/t/WSUECFCQk ..in the post template you want to make this changes, this example is for the post template #2 but you can do the same for the other.
You also need this custom css to adjust it, use this to customize the font and color: http://screencast.com/t/qVhOzyhqJ
.meta-info {
clear: left;
padding-top: 20px;
font-family: 'Sacramento', sans-serif !important;
color: #000000 !important;
font-size: 30px !important;
}
.meta-info .td-block-author a {
font-family: 'Sacramento', sans-serif !important;
color: #000000 !important;
font-size: 30px !important;
}
.meta-info .entry-comments-views {
font-family: 'Sacramento', sans-serif !important;
color: #000000 !important;
font-size: 30px !important;
}
Thanks
Hi,
You will need custom work for this but you can also use a plugin for it and add it to the menu using shortcodes, you could replace the actual search with your own here: http://screencast.com/t/78SAKU4J3
You can do the same for the social icons and use a plugin.
you could also use the WordPress search widget and tagdiv social icons, use page builder to customize them and add it with the do_shortcode() function, should look something like this: http://screencast.com/t/vb0u2EBFRHg
This is the code I use for the example: http://pastebin.com/JTjXCD68
This is a start, if you don’t have basic php/html/css knowledge we recommend you to get a freelancer from sites like: http://studio.envato.com/ to do it for as we cannot offer custom work as we work hard on the development, updates, fixes and support.
Hope this helps!
Thanks
-
This reply was modified 11 years by
Lucian.
Basically what I’ve done for my site is
(not using child themes as they add CSS redirects bad for SEO/speed)
a) search/replace all instances of fonts I don’t want to load from Google in my style.css file; using common font stacks for fallback such as 'Open Sans',Arial,sans-serif
(if you don’t know what font stacks are, see: http://cssfontstack.com/
b) set all my fonts in theme panel to ‘default’ so there is no code if/then trying to insert any custom fonts into header/footer/speedbooster
c) commented out the code in functions.php which loads google fonts on the page; and also removed the section of code which has the various links to theme fonts on google I won’t be using; no need to have if/then code asking to load fonts from google if I’m never going to do that via theme code (as per examples in my prior posts in this thread); need to both or you will get error. Same code in 4.22, 4.3 and 4.4 versions of theme.
d) I grabbed the link from google fonts website for the font I wish to use (as per my example above in this thread), then pulled the actual css from that link so I won’t be loading the links to the fonts from their CSS file (one less CSS file loaded on page); placed this at bottom of my own style.css file after the minified code, so that it lives in its own section after theme styles.
All of this was done with caching off, mod_pagespeed off, so that changes are picked up immediately. When editing my files I use either TextPad on the PC, or BBEdit on the Mac, to ensure my files have Linux/Unix line breaks since I’m using Linux web server. Some PC editors will put “Windows line breaks” in files, which are bad for Linux servers, in some cases, and can cause parsing errors. So, helps to know what you’re doing if editing core files for a web server.
PURPOSE OF ALL OF THIS:
1) speed up website
2) remove intermediate call to CSS style sheet on google, which may not have proper expiration headers/TTL, and may show “advisory” from testing GTMetrix,PageSpeed Insights, etc. – may help “rating” by removing one so-called issue caused by Google’s own system.
You do *NOT* need to do this, unless you have ALL OTHER optimizations in place. Many sites load their fonts from Google using their function call as it’s essentially loading from a CDN. However, “hacking” the theme for this purpose can help advanced users resolve those last couple of ratings issues, and also those obsessed with micro-optimizations.
WARNING
this hack must be done EVERY time you update the theme; so if not willing to do that, best to skip this whole subject and get on with creating great content which is better for SEO and SERPS than saving a couple of milliseconds on font loading.
You need to *decide* what fonts you wish to use for the theme.
If all of this is beyond you, then you can simply stick with the standard font usage as most sites do. What we’re talking about here is somewhat advanced; and if it doesn’t make sense, then you should likely skip this and worry about other necessary site optimizations.
If you look at my code from functions.php in 4.4 version of theme, you will also need to comment out the line that calls the Google fonts (using // ):
/* ----------------------------------------------------------------------------
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
}
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
}
}
You would still need to search/replace all instances of Google fonts in your style.css as I stated to replace all font stacks with the Google fonts you wish to use. Or, you’d need to look at the fonts in there to use for grabbing the CSS from Google Fonts to put at bottom of your style.css file.
Hi guys,
We are currently struggling to make the website look “more professional” on the top-header. At the moment we have a huge gap that bothers us (too much white), between the menu and the search function. Is there any way that we can change the design to look more like http://techcrunch.com/ for example? (visible search field) or remove the search function from there and add some social media buttons? Please see attached a few screenshots.
Thanks again for your huge support.
http://s7.postimg.org/qfca2irqj/techcrunch.png
http://s7.postimg.org/ksfx51p7v/wearables.png
Hi,
The theme is compatible and you can use Woocommerce plugin for your products. The theme hasn’t been build to work with custom post type you can customize though a custom post template an add it like this: https://forum.tagdiv.com/topic/help-post-site-template-for-custom-post-type/#post-22609
You can search the forum as there are many examples on how to use Advanced Custom Fields plugin, here is an example: https://forum.tagdiv.com/topic/function-to-hide-ads-and-function-to-show-author/#post-8993
Hope this helps!
Thanks
That worked well…Thanks you
i have one more instance similar to this
example screenshot https://www.diigo.com/item/image/3bjz5/qh4i
Hello,
Is that possible to add one more Default Newspaper space widget (see link) so I can add some banners at the sidebar bottom in all pages?
Thanks
Hi,
Thanks Christopher!
@Branstone
WordPress has some default cropping sizes http://screencast.com/t/ifk8fE1HYk and we added more sizes inside the functions.php file – http://screencast.com/t/2QaaubXnqxL
Those sizes are used on modules and sliders (including the Big Slider), you can read here about the thumbs used on modules and sliders https://forum.tagdiv.com/modules-and-blocks/
You can read here more about WordPress hard and soft cropping: http://www.davidtan.org/wordpress-hard-crop-vs-soft-crop-difference-comparison-example/
You could try to registers a new image size, you can read hare more about this: http://codex.wordpress.org/Function_Reference/add_image_size
Hope this helps!
Thanks
Hi,
Add this comments_template('', true); like this: http://screencast.com/t/LJ1cRIE8nGz
Please also make sure you do this for all cases, the example I gave you only adds it when the sidebar it’s located on the right/default.
Result: http://screencast.com/t/p80Rnjss8
Thanks
If I remove as you mentioned above
$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
}
}
I get
Parse error: syntax error, unexpected $end in /home/site/public_html/wp-content/themes/Newspaper/functions.php on line 1505
