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

Oh … fyi, Google is great resource to find stuff …
google: wordpress You Lose! Good Day Sir!

it’s your MOJO Marketplace plugin.

https://wordpress.org/support/topic/not-receiving-comments-2/

turning off third party plugins great way to debug stuff like this.

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

Heh. Many folks don’t know how to manage their web server so not really a theme issue re the CORS issue; theme does not control cross origin abilities.

This works on our Apache server for many years now; would be different on NGINX.

<FilesMatch "\.(ttf|otf|eot|woff|woff2|svg)$">
<IfModule mod_headers.c>
Header set Access-Control-Allow-Origin "*"
</IfModule>
</FilesMatch>

(( I don’t work here. ))

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

You could just remove my version of the code for jquery I suppose;
my version is assuming you are *not* using SpeedBooster 🙂

For example, you could try

a) speedbooster + my functions /without my jquery code

b) ‘scripts to footer’ ( https://wordpress.org/plugins/scripts-to-footerphp/ )
plugin + my functions w/my jquery code

compare results with Newsmag 3.1x ?

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

Well, WordPress 4.6x uses 1.12.4 — so why load two versions ?

I don’t use SpeedBooster, so no advice on that 🙂

I am using the “scripts to footer” plugin for testing, then I just move the stuff once I have critical CSS generated.

Guess that isn’t much of an answer, but it’s all I got.

I am actually working on a ‘plug-in’ right now for all my custom functions.

=========
building my own WP plugin called “[name pending]” to do this:
(1) remove junk from WP headers like versioning, emoji scripts, comments feeds
(2) change default WP image quality for thumbnails for better speed
(3) security fixes to disable poking the built-in password reset and password reset email junk not needed for most businesses;’ disable XMLRPC/pingbacks, etc.
(4) Sitemap shortcode, so one could drop a single line into a page to generate local sitemap of company pages and info
(5) OG tags generator for FB, Pinterest, social
(6) SEO basic headers to drop in keywords, schema, image, meta titles and descriptions based on type of page (without having to use a super bloaty SEO plugin that might actually mess up your site when updated)
(7) Remove /category/ and /tag/ base elements; option to rename /author/ slug to something else like /department/ or /expert/ 🙂
And more … all in ONE plugin which can easily be commented out if client doesn’t want something when developing their site.

I will put this onto the web once it’s done 🙂
(need to add toggles for on/off on things in the admin panel; version 1.0.1 does not have admin panel options)

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

Disable the mobile theme option.

simchris
tagDiv Member

Note if your site needs ability for users to reset password, you would need to remove that section commented as such. For most folks there is no need to allow people to sit there and ping your lost password function, which uses system resources.

simchris
tagDiv Member

Sorry… been busy rescuing some sites which were borked due to improper backups (sigh) from Aug 5 web server crash (damn you Softlayer/IBM!)….

here was the updated bunny code which took out the renaming of the author slug to profile, and fixed the comment removal in footer, and the emojis….

this would go at bottom of functions file … if you want; only tested with Newsmag 3.1 and other themes I use (I do have a custom thing we use for e-commerce, and our news portal mothership, but those are super custom things):

=================


/** CUSTOM OPTIM CODE : by Christopher Simmons - REV 11..16 */

// Remove jQuery Migrate Script from header and Load jQuery from Google API
function simmonsbunny_remove_jquery_migrate_load_google_hosted_jquery() {
	if (!is_admin()) {
		wp_deregister_script('jquery');
		wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js', false, null);
		wp_enqueue_script('jquery');
	}
}
add_action('init', 'simmonsbunny_remove_jquery_migrate_load_google_hosted_jquery');

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

/** functions for headcleaner */
function rm_generator_filter() { return ''; }
add_filter('the_generator', 'rm_generator_filter');

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);
remove_action('wp_head','start_post_rel_link', 10, 0);
remove_action('wp_head','adjacent_posts_rel_link_wp_head', 10, 0);

remove_action('wp_head','print_emoji_detection_script',7);
remove_action('wp_print_styles','print_emoji_styles');
remove_action( 'wp_head', 'wp_resource_hints', 2 );

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

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

/** functions for security */
function no_errors_please(){
return 'You appear to be up to no good. Your IP logged and will be blocked.';
}
add_filter( 'login_errors', 'no_errors_please' );

function disable_reset_lost_password()
 {
   return false;
 }
add_filter( 'allow_password_reset', 'disable_reset_lost_password');

function remove_lost_your_password($text)
  {
    return str_replace( array('Lost your password?', 'Lost your password'), '', trim($text, '?') );
  }
 add_filter( 'gettext', 'remove_lost_your_password'  );

add_filter( 'send_email_change_email', '__return_false' );

/** functions for admin bar */
function mytheme_admin_bar_render() {
  	global $wp_admin_bar;
  	$wp_admin_bar->remove_menu('wpseo-menu');
  }
 add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' );
 add_filter( 'wpseo_use_page_analysis', '__return_false' );

function my_custom_css() {
     echo '<style>
          .misc-pub-section.yoast-seo-score.content-score { display: none; }
          .misc-pub-section.yoast-seo-score.keyword-score { display: none; }
     </style>';
}
add_action( 'admin_head', 'my_custom_css' );

function dequeue_yoast_css() {
  wp_dequeue_style('yoast-seo-adminbar');
  wp_deregister_style('yoast-seo-adminbar');
}
add_action('wp_enqueue_scripts','dequeue_yoast_css');

/*remove embeds */
function disable_embeds_init() {
remove_action('rest_api_init', 'wp_oembed_register_route');
remove_filter('oembed_dataparse', 'wp_filter_oembed_result', 10);
remove_action('wp_head', 'wp_oembed_add_discovery_links');
remove_action('wp_head', 'wp_oembed_add_host_js');
}
add_action('init', 'disable_embeds_init', 9999);

// Remove comment-reply.min.js from footer
function chrisbunny_clean_header_hook(){
wp_deregister_script( 'comment-reply' );
}
add_action('init','chrisbunny_clean_header_hook');

/** End Christopher's magic bunny code; Copr. (c) 2013-2016 CLS */
  • This reply was modified 9 years by simchris.
simchris
tagDiv Member

If using the Jetpack comments module – not part of the theme, see:
https://jetpack.com/support/comments/

simchris
tagDiv Member

Does that work if you put into a text box widget on a sidebar ?

simchris
tagDiv Member

Only the forum got infected,
So you need to put the working theme files back for your system to work.

simchris
tagDiv Member

You should have the new canonical url as the og url moving forward, and have the old urls all 301 redirecting to the new version, meaning all old http urls shoukd automatically forward to https version.

If you use the old url as og url then all future likes shares would point at wrong location.

If you dont care about google or seo, and all you care about is tracking old likes, you could make a function to insert the permalink and rewrite the https to http. You likely would need to hire developer, as not related to the theme in any way.

simchris
tagDiv Member

Titles on posts should be h1

Subheads you put on posts or pages shoukd be h2

Sidebar titles and category post links h3

simchris
tagDiv Member

Yes, as stated in the docs and sticky post at top of forum;

** VC plugin is ONLY updated when the theme is updated
** YOu don’t get a paid license to the plugin
** It is bundled version and cannot be “activated” through WP Bakery for support/updates
** You cannot update it via WP Bakery as you don’t get a paid license with bundle version

See the theme docs:
https://forum.tagdiv.com/newsmag-how-to-update-visual-composer-plugin/

simchris
tagDiv Member

It shouldn’t – that means you didn’t paste in the GA code properly — try re-reading the docs.

TagDiv support back on monday 🙂

simchris
tagDiv Member

Yes. You can’t update to v 5.0 unless you go buy a copy from WP Bakery.

The version included with the theme is 4.12.1 or whatever. The free bundled version is ONLY updated when the theme is updated per the links and info provided.

Sorry – tried to help. I don’t work here. Good luck!

simchris
tagDiv Member

Make sure you enough memory allocated to WP for Visual Composer; the default is not enough. See the ‘system status’ tab in the theme panel.

simchris
tagDiv Member

Best way to move your site properly from old domain to new is with DUPLICATOR plugin.

I did this when we changed site from ‘MusicIndustryNewswire.com” to “MuseWire.com” …

Theme devs not really responsible for helping you move your website!

simchris
tagDiv Member

It came out Nov. 9, which was a really long time ago.

They will update the new version when tested as compatible, relatively bug free, and when they next update the theme. So make sure you have the email checkbox set in your ThemeForest account for when theme is updated.

The ‘free’ bundled version is only updated when theme is updated, not before.

(( I don’t work here. ))

simchris
tagDiv Member

In my layouts, I make the home page sidebar a widget sidebar; then I use the normal appearance > widgets to put stuff in that sidebar on home page.

No need to get new version of Visual Composer just because there is an update.
Just ignore the update notice.

I have actually moved to the TD COmposer beta, as it’s simpler, more lightweight and doesn’t get pokey updates every 10 weeks.

simchris
tagDiv Member

sticky post means the post that is ‘stuck’ at top of the forum every time you look at it
https://forum.tagdiv.com/topic/how-to-update-visual-composer/

REF:

Emil G
#34790
Jan 19, 2015 at 8:57 am
The Visual Composer plugin that comes with the theme is licensed to the theme, the license specifies that only we can provide the updates and you don’t have to buy it or register it. We provide updates on a regular basis, after we test the plugin for theme compatibility the plugin is included in the latest theme update, inside the Plugins folder:
https://forum.tagdiv.com/wp-content/uploads/2015/01/visualc_newsmag.png

Here is the guide on how to update the plugin – https://forum.tagdiv.com/how-to-update-visual-composer-plugin-wpbakery/

Conclusion – We’re testing the plugin latest version, if everything is ok we will include it in the next update and only then you can update the plugin by downloading the theme latest version and following the procedure presented in the plugin update guide.

Emil G.

simchris
tagDiv Member

Basically open the post template and put shortcode at bottom of the content section. Try it 🙂

simchris
tagDiv Member

Yoast has nothing to do with instant articles other than embedding open graph data and allowing you to set custom snippet and image for Facebook.

simchris
tagDiv Member

Try using ajax caching option, or not, depending on your setup.

Again – it’s a simple “hit counter” which writes a number to the post meta, which you can *see* on the actual post and is called as a function on page load. So, when the page is loaded, it increments by “1” to that data field which you can see in the custom fields bottom of post edit page. If you have some type of caching going on, and it goes down, it’s an issue with your caching setup where page is viewing older version of the counter/post meta field than the current version. So only you can adjust your caching setup.

Difference between GA and hit counter is that GA doesn’t count bot views in the normal traffic, while the hit counter might, depending on how your system happens to work on the server side in viewing http/https requests.

I have been using the hit counter for three years with these themes with zero problems.

Also keep in mind that these kinds of counters are primarily for vanity purposes; actual tracking metrics should be done on the server side with reports included with your hosting plan, or using GA. The hit counter does nothing more than increment a page load and has no other ability or value.

Just some feedback.

simchris
tagDiv Member

Note it’s a simple hit counter. It counts how many times the page is loaded. That’s it.

You will always see difference between that, Jetpack, and Google Analytics.

Welcome the the internet!

simchris
tagDiv Member

I don’t think so, but could be wrong. Sorry.

Viewing 25 posts - 3,076 through 3,100 (of 9,335 total)