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

Looks like the slider is not setup properly.

simchris
tagDiv Member

You can also use several plugins for WordPress that track down *which plugins* are using the most system resources. JetPack is a huge culprit, most often, which is why we don’t use it here.

There are several, but this might be worth using to evaluate, as starting point
(admin, you may want to add this or similar to support docs)
https://wordpress.org/plugins/p3-profiler/

Using WP-Optimize can also enhance dbase performance.

simchris
tagDiv Member

Editing the td_fonts would not future proof it, unfortunately.

When I get a free brain cell I’ll post the modification since I need to do that anyway. 🙂 I’m sure “real support” will have an answer sooner, though !

simchris
tagDiv Member

I only replied since I crashed my site changing the theme from Newspaper to Newsmag because I forgot to disable the old visual composer plugin first …. and learned my lesson on that one!

simchris
tagDiv Member

Well, this is a NEW theme, on version 1.0 … it is not an update to Newspaper. So you need to treat as changing to different theme, unless I totally misunderstood what you were saying there 🙂

So,
1) switch to default WP theme
2) turn off all plugins; delete ALL plugins used for Newspaper theme
and delete any prior issue of Visual Composer – completely
3) clear cache, update CDN if needed
4) install theme
5) install plugins
6) activate new visual composer with all other plugins OFF
7) activate theme from wordpress > appearance

So, you need to install the theme then activate the new theme following the theme docs.
https://forum.tagdiv.com/installation-newsmag/

simchris
tagDiv Member

Which icons are not working?

The theme icons like search glass, social icons, etc., all work on my site in Chrome for Windows and on iPad.

The “like” button works for me also.

Sorry that doesn’t help. Did you have link to your post page where those problems are happening? Be sure to fully clear your browser cache with the new theme enabled, too.

simchris
tagDiv Member

As a comment, Open Sans true italic should likely be added by default as the “oblique” (slanted normal font) version kind of sucks.

simchris
tagDiv Member

Well, if the “calls” to the italics and other weights are not found in the td_fonts.php, then they can’t magically be added any other way since any other method would simply add another call to Google fonts, when it should be part of the string from td_fonts.php; and the font calls are also optimized by the td-booster system, so best to keep it in one place.

I don’t see any way around NOT editing the td_fonts.php file, so far.

Also note the stuff on my functions.php file hacks – have nothing to do with the fonts. Was just sharing that while on topic of functions.php. Those edits are partially to improve google pagespeed insights.

But wait for Lucian or Marius. 🙂

simchris
tagDiv Member

You don’t need a key for Visual Composer; it’s a “bundled version” with the theme.
I found it’s actually best to manually upload it to the /wp-content/plugins/ folder.

You do need to fully remove any old version of Visual Composer before installing the version which is included with the theme. I had to do that, as I got a 500 server error when I didn’t do that correctly.

simchris
tagDiv Member

Op cache should work fine. We’re using APC cache on our Apache/CentOS server. Basically it’s server side object caching. This helps speed up any site, nothing to do with the theme. You would also need to check gzip/deflate settings, expiration headers, image optimization/compression, etc. for things to speed up your site overall. 🙂

simchris
tagDiv Member

My custom functions.php mods, for those who care about such and sundry…. use at your own risk.


/*CHRISTOPHER'S CUSTOM MODS - 10.4.14. rev2 */

 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 50;' ) );

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

 add_action('init', 'myoverride', 100);
 function myoverride() {
     remove_action('wp_head', array(visual_composer(), 'addMetaData'));
}
  • This reply was modified 11 years by simchris.
simchris
tagDiv Member

Normally we convert ALL fonts to Open Sans (with Newspaper, anyway); so typically we would open the style.css, search/replace all fonts to what we want, then edit the functions.php … but now would edit the td_fonts.php to REMOVE all the google fonts not being used; this ensures they don’t “print” in the head/foot of the posts online.

I have not yet done this for the fonts.

For our sites we have to do the following each update
1) update the hook for the post views to “views” from existing field
2) edit the search file to remove breadcrumbs (I don’t need those on indexes for each story)
3) edit functions.php to put various elements for us at bottom, such as changing default compression for images/thumbs, adding note to poke hackers trying the lost password function, turn off XMLRPC elements in header, remove Yoast from menu bar in admin, hide header elements like versions, hide use of visual composer, etc. — many common “optimizations” for WordPress sites.
4) edit header to remove the section for video thumbnails and this stupid thing
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
5) optimize the fonts, by doing the aforementioned house cleaning on style css file, and removing the extra google font calls.

Your mileage may vary 🙂

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

Actually … I think this is setup differently from Newspaper; in doing quick looksee, in the /includes/wp_booster/

I think one would *actually* edit the td_fonts.php

look at line 902

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

I think you would need to edit that to add in both the italic and the 200 font.

Wait for Lucian or Marius with official help, though. This was just me doing quick look-see. (I have not yet actually done this with NEWSMAG…!)

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

Best way is to remove the font calls to Google from the functions.php file, then manually put the calls to Google CSS at bottom of your styles.css file. Kind of advanced, but I covered how to do this in detail in the Newspaper theme forum.

simchris
tagDiv Member

Second issue:
you need to run the REGENERATE THUMBNAILS plugin to make your “existing images” fit the new sites. If your images are too small WP cannot enlarge them, but we also use THUMBNAIL UPSCALE plugin and works well.

simchris
tagDiv Member

Yes. Most WP themes now use the built in functions of WordPress to create thumbnails. This is done by setting a featured image. Otherwise if you had 5 images placed into a post, you’d get tons of redundant thumbnails not used, since theme uses “featured” image to be featured on all the indexes, related, home page, etc. This is normal practice.

We do the same thing here: our existing content has images placed at top of the post, so we turn off the featured image option, but still have to choose a featured image to get thumbnails.

So, we actually use a plugin to set first image from post automatically as featured image.

We use “Auto Post Thumbnail PRO” to automatically make first image from post or video if no image into the “featured” image for existing content. Works great.

simchris
tagDiv Member

Thank you!
I actually needed this also, which wasn’t clear from my rambling comments on Sunday!

Works perfectly! 🙂

simchris
tagDiv Member
ads - reply

(oops … removing my post comment as I answered my own question/add on to this topic by RTFM…. man I need a vacation!!) 🙂

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

Yup, not all plugins work with all themes. So, be sure to provide as much info on the thread for THAT issue separate from THIS issue, to be sure you get help from Lucian and Marius 🙂

simchris
tagDiv Member

You can use your own videos with all WordPress themes, as you likely know, by simply uploading them from a post page or from the media manager
http://codex.wordpress.org/Uploading_Files

supported formats in WP:
Video
◾ .mp4, .m4v (MPEG-4)
◾ .mov (QuickTime)
◾ .wmv (Windows Media Video)
◾ .avi
◾ .mpg
◾ .ogv (Ogg)
◾ .3gp (3GPP)
◾ .3g2 (3GPP2)

Normally you can embed video into any WP page or post using shortcode, or just the full URL to the video on your site, CDN, etc. as so:
http://codex.wordpress.org/Video_Shortcode

With the theme, I think in a post you can choose “Style 8” for a featured video, then put in the URL to your video (try it).

I have no idea if the “video playlist” supports locally hosted videos, as I’ve not yet tried that.

Not sure if that was what you wanted, but hope it helps.

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

If you mean, how do you switch from the default list of latest posts to a custom home page; you need to build that using the page builder, by creating a blank “page,” then adding the modules you want to do your layout, then selecting that page as a static page under WP settings > reading.

For a walk through on setting up the home page customized with the content you want in sections, sliders, etc., see the theme documentation which has a nice walk through:
https://forum.tagdiv.com/homepage-newsmag/

Then to get into the more complicated stuff:
https://forum.tagdiv.com/page-templates-newsmag/

Or, start from the section here called “homepage”
https://forum.tagdiv.com/newsmag-documentation/

Hope that helped!

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

WordPress has a great built in gallery feature now, works with all themes, which you can find here:
http://codex.wordpress.org/The_WordPress_Gallery

This theme comes with a nifty gallery with thumnails, like here:https://forum.tagdiv.com/gallery/

Hope that helped a little 🙂

simchris
tagDiv Member

YAY!!!!

I had a server 500 error myself, so went through the usual torment of switching over. That pesky ‘visual composer’ plugin in particular really is a pain in the butt sometimes when changing themes!

simchris
tagDiv Member

Wordpress cannot make images larger, only smaller. To have images larger than what you upload, you need to use a plugin for that. I use the plugin, THUMBNAIL UPSCALE by Stanislav Khromov, which works wonderfully.

There is a full-width image layout for posts, if you look at a post edit page, check out styles 4, 5 and 6. However, unless the original image you upload is large enough, it won’t fill the space as WP doesn’t do image enlargement.

So, you would likely want to install the plugin, and possibly regenerate thumbnails with the REGENERATE THUMBNAILS plugin, in order to get images larger to fit theme sizes, which is normal practice when moving to a new theme with different size thumbs and featured images.

Hope that helped!

  • This reply was modified 11 years by simchris.
Viewing 25 posts - 7,851 through 7,875 (of 9,335 total)