Home User profile
tagDiv Member
Christopher is a long time WordPress user. Anything else you need to know is private ;-) I *do not* work for TagDiv, but I've been using their themes since late 2013.
simchris
tagDiv Member

To use websafe fonts, you’d comment the google fonts out of the functions file and then select the fonts you want in the theme panel under fonts ๐Ÿ™‚

simchris
tagDiv Member

Example plugin
https://wordpress.org/plugins/in-image-ads-manager/

simchris
tagDiv Member

You likely need to change the file where that login code happens to be, and implement something like a form post explicitly from

post > (wp sitename)/login.php (or whatever)
to

post > https://www.myrealsite.xyz/login.php (or whatever)

So if you can figure out where the actual snippet of code is, you can likely manually change that, so all Radu and/or Lucian would need to tell you is where to edit that login code (the file/module).

  • This reply was modified 12 years by simchris.
simchris
tagDiv Member

This is not a normal function of online publishing sites, but there may be a plugin for this rare case usage. However that is typically done with an overlay, not rewriting content into the graphic. And when Google grabs the image for image search they would not also grab the css/dhtml overlay with an advertisement. You also cannot “inject” advertising into videos source from YouTube or Vimeo, as that would violate all kinds of usage terms. For your own videos, why not simply put an ad in the video when you create them?

I doubt any theme, including this one, will be adding a function to “inject” advertising into media files, particularly since the theme would not be able to determine whether or not you “own” the content the ads would be injected into, and again – this would not be possible with image and video files except via an overlay on a CSS/dhtml “layer.”

simchris
tagDiv Member

@Manuel
obviously in your case you have elements loading from something like 7 external sites, graphics loading from the network portal vs localized, and it looks like you don’t have the setting activated for mod_pagespeed to insert image dimensions.


@sbo

obviously in your case, if your speed is 62 then you need to address all the elements on your server for caching, expiration headers, gzip/deflate, image optimization, etc., which is what this thread is all about and worth reading through ๐Ÿ™‚

simchris
tagDiv Member

When you set your permalink structure in the WP settings panel; it will write the proper code to your htaccess file for you, if the file is writable.

You have something funky with your pages, unless you’ve just been editing the demo content vs making new posts … e.g.,
this page

http://cherrykoks.de/allgemein/td_d_slug_44/

should be something like

http://cherrykoks.de/allgemein/name-of-my-story-goes-here/

So that is something wonky you should sort out soonest.

For the Google fonts; once you add the code for the fonts you want to your style.css file, you would delete or comment out the section on google fonts from the functions.php file. Search the forum for more on how to do that.

  • This reply was modified 12 years by simchris.
simchris
tagDiv Member

You shouldn’t need to minify the css file again, if you’ve cleared the cache on your CDN so that people are loading the new minified version vs the old non-minified version. Easy to test, point your browser at the file and download to see if it’s the right one being served.

One of the items in your GTMetrix report (click the little arrows to expand each item), shows this:
โ€ขhttp://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?ver=4.1

Basically if you download that file and add it to the end of your style.css file, then remove the above code from your pages, you remove that issue reported in GTMetrix.

Also, I’m assuming you’ve not updated everything since the ?= versioning was still showing.

โ€ขhttp://cherrykoks.de/wp-content/plugins/contact-form-7/includes/css/styles.css?ver=4.1
โ€ขhttp://cherrykoks.de/wp-content/themes/Newspaper/includes/wp_booster/external/bootstrap/td-bootstrap.css?ver=4.1
โ€ขhttp://cherrykoks.de/wp-content/themes/Newspaper/style.css?ver=4.1

ALSO: I don’t know why your posts have weird td-slug stuff vs the filenames based on pretty permalinks. That is so NOT normal, btw. Be sure to check your htaccess file to see that the block for your pretty permalinks is in there (or just resave your permalinks in wordpress general settings – and it will tell if you if the file is writable).

simchris
tagDiv Member

And remember to get your “real” Pagespeed from Google Insights turn off your AdSense stuff temporarily, as the errors from that you can’t do anything about, and are not technically part of your “real” score ๐Ÿ™‚

simchris
tagDiv Member

Remember to clear cache on your CDN each time you upload something like a new version of the functions.php file or the minified style.css file … otherwise it may keep serving the old versions.

Also note my setting in the functions.php for optimizing the jpeg thumbnails from 90 to 60, is a good addition (no plugin needed!).

For the Google fonts item …
there is one trick I did, which is download that style sheet from Google being loaded for your pages, copy/paste the CSS from that file and put at bottom of your style sheet, and delete loading the Google fonts (I think you can comment that out in the functions.php file); this way the CSS is loaded as part of YOUR style sheet and NOT being loaded from Google. This saved me couple of points as one less download, and no worries about expirations or minification for the Google CSS for the fonts.

simchris
tagDiv Member

You enable comments from the main wordpress settings under “discussion” …

Wordpress docs:
http://codex.wordpress.org/Comments_in_WordPress

simchris
tagDiv Member

Hi, easier for me to copy stuff from my functions.php than find it, I’ll admit!

Here is my custom code in my functions.php file … not all of this may apply to you or anyone, but it’s what we do for our sites:

(I put this at BOTTOM of the functions.php file — NOT the top!!!)

/*CHRISTOPHER'S CUSTOM MODS - 1.12.14 rev1 */

 remove_action( 'wp_head', 'wp_generator' ) ;
 remove_action( 'wp_head', 'wlwmanifest_link' ) ;
 remove_action( 'wp_head', 'rsd_link' ) ;
 remove_action( 'wp_head', 'feed_links', 2 );
 remove_action( 'wp_head', 'feed_links_extra', 3 );

 add_filter( 'pre_comment_content', 'wp_specialchars' );

 function no_errors_please(){
   return 'GET OFF MY LAWN !! RIGHT NOW !!';
 }
 add_filter( 'login_errors', 'no_errors_please' );

 /* Disable YOAST SEO Admin Bar. */
 function mytheme_admin_bar_render() {
 	global $wp_admin_bar;
 	$wp_admin_bar->remove_menu('wpseo-menu');
 }
 // and we hook our function via
 add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' );

 function delete_enclosure(){
  return '';
  }
  add_filter( 'get_enclosed', 'delete_enclosure' );
  add_filter( 'rss_enclosure', 'delete_enclosure' );
  add_filter( 'atom_enclosure', 'delete_enclosure' );

 function remove_cssjs_ver( $src ) {
     if( strpos( $src, '?ver=' ) )
         $src = remove_query_arg( 'ver', $src );
     return $src;
 }
 add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
 add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );

 add_filter( 'jpeg_quality', create_function( '', 'return 60;' ) );

 function remove_pingback_url( $output, $show ) {
     if ( $show == 'pingback_url' ) $output = '';
     return $output;
 }
 add_filter( 'bloginfo_url', 'remove_pingback_url', 10, 2 );

  • This reply was modified 12 years by simchris.
simchris
tagDiv Member

Try this?
https://wordpress.org/plugins/featured-image-in-rss-feed/

or if able to edit your functions.php file
(code credit: http://brandswithfansblog.fandommarketing.com/how-to-optimize-rss-to-display-featured-blog-images/ )

function featuredtoRSS($content) {
 global $post;
 if ( has_post_thumbnail( $post->ID ) ){
 $content = '' . get_the_post_thumbnail( $post->ID, 'thumbnail', array( 'style' => 'float:left; margin:0 15px 15px 0;' ) ) . '' . $content;
 }
 return $content;
 }
 add_filter('the_excerpt_rss', 'featuredtoRSS');
 add_filter('the_content_feed', 'featuredtoRSS');
  • This reply was modified 12 years by simchris.
simchris
tagDiv Member

Thanks Lucian,
saved me having to look for that, event though the file name is good pointer ๐Ÿ˜‰

Commenting out the comments for author box is best choice for our Disqus use. I actually already commented those out on the modules same time I uncommented author name, so works fine.

Keep up the good work!

Chris

simchris
tagDiv Member

Well, nobody is paying them to add new features for your $50 purchase ๐Ÿ™‚ It’s nice to ask for things not found in the product as advertised, but they obviously have to weigh in on what takes priority along with dealing with changes to WordPress 3.9 and upcoming 4.0 major launch. If you look at the changelogs you’ll note they’ve added a *lot* of things people asked for which were not part of the theme when you and I bought the product, Mehedi.

Everybody can access the tracking page, so not sure why you can’t see that on Github?

I think they’ve done a great job in implementing things like one click layout installs vs just adding “I want the site in black” when stuff like that can be done with CSS.

Some things like “news ticker” have been on the request list a long time, among others, but they are not the most requested elements.

Asking the developer to “fix this ASAP” when it’s not an issue with the theme, related to a plug-in they don’t manage or develop, is a bit unrealistic.

Right now I’ve come to the conclusion that “commenting out” (pun there, ha ha) the comment count on the author page is best option when using Disqus as it’s not a critical necessity, most people could care less, and better things to do.

I realize you may need it “NOW” — but if it’s that dire, why not hire a developer to sort it for you? would be my thinking.

Anyway…. for those who don’t know how to search this forum, here is the link posted by Radu and crew re the various requests he’s been tracking:
https://github.com/opradu/newspaper/issues

simchris
tagDiv Member

Lucian … what is best way to comment out the comments count on the author page… ?
Thanks ๐Ÿ™‚

simchris
tagDiv Member

@Joe … I think the developer is busy working on the existing 140+ feature requests at the moment and this isn’t a theme related function, technically. If you come up with a solution, please share ๐Ÿ™‚

But I’ll be very happy if somebody has a fix to share, as we’d like to enable the comments count on author page

… but I think we’ll likely just comment that out, as nobody “really” cares how many comments an author has from beginning of time for all their posts.

simchris
tagDiv Member

Just for fun you might want to check out this topic, but work “backwards” for my later posts on stuff like mods, and tricks ๐Ÿ™‚

https://forum.tagdiv.com/topic/pagespeed/

Also if you want a warm and fuzzy, be sure to test your site for “page speed” with all Google advertising “off” for the real score.

simchris
tagDiv Member

Hi, well if you read through my posts on the Page Speed topic, I’ve noted the code I use in functions.php to remove the ? queries which I prefer to using plugin, which it seems you have okay, and also how to do the CSS and JS minification, which takes 5 minutes — just copy the code into the CSSminifier site, then copy out the minified version and then overwrite your css file on the server via FTP. Bam – you’re done ๐Ÿ™‚

And of course optimizing your images prior to upload is super important, too.

For the size thing, you can certainly try adding the =”100″ to your header, and see if that improves your score or not. In my case it was a non-issue since I’m using mod_pagespeed on our server which adds image dimensions on the fly including for anything resized based on CSS percentage width images which is the cat’s pajamas as my grandma used to day ๐Ÿ™‚

Well … remember audience comes from content — original content — not page speed. If you get above 90 for desktop and 80 for mobile you can move on with your life and concentrate on content, and then revisit this stuff as it comes up. (Now, I will admit I wasted the entire month of January 2014 on this adventure, so I can’t advise others about not getting obsessive …).

I don’t use Cloudflare – some people love it.

simchris
tagDiv Member

This is a well known issue with Disqus and not theme related. I was trying to sort this out the other day, actually. In theory you could construct a javascript query using their API based on the author, but it’s a bit complex, based on my own research.

I’ve found this, but I’m not in the right frame of mind to tackle it right now:
https://help.disqus.com/customer/portal/articles/565624-tightening-your-disqus-integration

simchris
tagDiv Member

Hi, I wouldn’t worry about those two images which are sized with CSS, as they may technically be false positives on GMetrix. Google doesn’t advise you about that, so the fact you have 92 desktop with the ads and fonts “on” isn’t too shabby.

I’d focus more on removing the versioning queries on stuff (blah?=version4.1) which can be done by editing functions.php file, or some plugin might help. I’d also minify the css and java that google recommends here:
https://developers.google.com/speed/pagespeed/insights/?url=http%3A%2F%2Fcherrykoks.de%2F&tab=desktop

Minifying http://cherrykoks.de/โ€ฆntent/themes/Newspaper/style.css?ver=4.1 could save 8.3KiB (19% reduction) after compression.

As a perfect example of how imperfect this adventure is, you’ll note most of the “errors” come from Google’s universe and not your site !

Turn off the revolution slider plugin if not using it, since it adds the two CSS style sheets Google cautions about, and recommends combining.

Most important however is your mobile score which is 75; and you want that 80 or higher. Right now the revolution slider CSS is hurting that, along with one image you uploaded which is not well optimized.
Compressing and resizing http://cherrykoks.de/โ€ฆwp-content/uploads/2014/08/3-745x483.jpg could save 108.6KiB (87% reduction).

  • This reply was modified 12 years by simchris.
simchris
tagDiv Member

Disable the plugins that came with prior theme. Changing to a theme doesn’t deactivate the old plugins. Delete the Visual Composer plugin which came with “X Theme” and install the version which came with Newspaper.

simchris
tagDiv Member

Obviously any customization not found in the online demos for the theme, might require hiring a custom programmer, or building out a custom category template.

But try this:
1) create category called “Tech”
2) in theme panel, go to “categories”
3) click on the accordion for “Tech” and look at the options (assuming you have not already); since you can add a slider, custom sidebar (you have to create one first), custom background color or image (like a techy background for tech, sporty for sports), and the layout of the story display.

I “think” you can use the full width sidebar widget option to create a custom category sidebar (e.g., sidbartech), and then put a full width custom element into that area. I’ve not yet tried that.

I am actually contemplating doing some things like this myself, which is why I thought to reply. Nice thing is you can play with it and not break anything ๐Ÿ™‚

simchris
tagDiv Member

I ran into this with a custom latest posts widget that let me choose just a plain text list of news items from a single category without images. If I put the widget in one place it would not work, if I used two of them stacked it wouldn’t work. So, I had to separate them by an AdSense box and then worked just fine. Annoying as heck. It turned out it wasn’t resetting the dbase query each time, so the second one wouldn’t work if put in a certain place. Sheesh. Nothing to do with this theme, but with Woo Canvas for another site. Always a fun time with this stuff (gremlins! voodoo!) ๐Ÿ™‚

simchris
tagDiv Member

Remember to fully clear your cache both on server/site as applicable, and also in your web browser, as you will initially find the old style.css loading, and everything will look a mess.

simchris
tagDiv Member

Um…. you might want to read up on how to use WordPress first from the many tutorials online. Then review the docs for the theme, then explore using the features on each category page.

Typically you have categories for news such as
* Technology
* Entertainment
* Music
* Sports

then when you do a post, the news post gets put into a category related to that news content, like “Sports.”

For each category page, you can select a module layout, such as a big photo, and then colors, and a description about that category. The category page auto-updates with your latest items, and you can make it so the “featured” post is highlighted on each category page.

If you want to create a complete home page like layout for each category, you might have to do some custom programming. This is typically done in WordPress by creating a new category template based on the category number.

That might not be the best answer, but perhaps it will get the juices flowing ๐Ÿ™‚

Viewing 25 posts - 8,601 through 8,625 (of 9,335 total)