- ApiPractical example – How to add a new Block and Module
- Apitd_api_top_bar_template::delete
- Apitd_api_top_bar_template::update_key
- Apitd_api_top_bar_template::update
- Apitd_api_top_bar_template::add
- Apitd_api_single_template::delete
- Apitd_api_single_template::update_key
- Apitd_api_single_template::update
- Apitd_api_single_template::add
- Apitd_api_footer_template::delete
- Apitd_api_footer_template::update_key
- Apitd_api_footer_template::update
- Apitd_api_footer_template::add
- Apitd_api_smart_list::delete
- Apitd_api_smart_list::update_key
- Apitd_api_smart_list::update
- Apitd_api_smart_list::add
- Apitd_api_thumb::delete
- Apitd_api_thumb::update_key
- Apitd_api_thumb::update
Thanks! The only thing that have to change is the final score.
example: http://gyazo.com/a7094145888d18bd2b7f5809315db392
In the code it is: “<div class=”td-review-final-score”>4.3</div>”
The idea is to set:
1 to 5
2 to 6
3 to 7
4 to 8
5 to 9
The result is that the final rating is getting from 5.0 to 10.0 instead of 0.0 to 5.0
Which code do i have to edit for this?
Thanks!
JB
@alin Thanks for replying, i contacted my host provider, i am using dedicated server from 24shells.net.
they says when ever huge traffic come to my website, for example 7k people online at 1 time, it create an multiple requests on server and hence create a load on server by increasing cpu usage and server goes down!
so he says, this is the reason we block admin-ajax for other to access using htaccess file.
he send me that links that explain better:
http://www.webhostinghub.com/help/learn/wordpress/heartbeat-admin-ajax-usage
he also says, all wordpress sites with high traffic have this problem, this is some kind of “wordpress issue” not from their server side..
can you please help me out with this? i am sure there must be a solution of it, as million of people using wordpress!
Thank you Emil.
Actually, I want to enable this for my post. You can find an example here : http://publikart.net/un-homme-tres-recherche-dvd/
Theme panel doesn’t work.
Can you fix it ?
Thank you
Hi, I need to remove the border on a page, between Pagebuilder and Latest articles. Like on this image: http://www.screencast.com/t/bow3LVyWcnJ
I added this code to custom css:
.td-container {
border-bottom: none;
}
But I need to know if there is a better way to accomplish this.
(Here’s an example.)
Regards,
Felipe Z.
Hi,
The ad is practically under the header container and that’s why it’s not clickable for example around the logo, when you click on that area you actually click on the header container.
Thank you, Emil G.
Hi,
You can edit loop-single and single-template depending the post’s template that you use and replace date: http://screencast.com/t/oU2H0hGDQ – http://screencast.com/t/URfuYUBQ2c
<?php echo human_time_diff( get_the_time('U'), current_time('timestamp') ) . ' ago'; ?>
Result: http://screencast.com/t/EJii2sGi
Hope this helps!
-
This reply was modified 11 years by
Alin [tagDiv].
Hi,
1. I’m sorry I didn’t see “links”!
Please edit td_module.php and delete this: http://screencast.com/t/GJNpGp2MHi5
2. Please change to the html editor and add download to the link: http://screencast.com/t/Aw61rhIxMnK
Result: http://screencast.com/t/rnEH2dj2W
On page that I suggested above you can find more examples.
Thanks!
Hello,
On posts with Youtube videos the excerpt shows the youtube code.
Example screenshot
https://www.dropbox.com/s/n1rzsj4djnk3528/Screenshot%202015-02-08%2017.42.00.png?dl=0
Or view it live at http://photorec.tv/ scroll down to the ALL POSTS section and the first post there MishMash Podcast EP 44: Mirror Slap shows the code. Suggestions for hiding that?
Thank you,Toby
Hey I am using this to call the “posted x time ago” function
<?php if (is_page()) { ?><span class="timeAgo">Posted <?php echo human_time_diff(get_the_time('U'),current_time('timestamp')).' ago';?></span><?php } else { ?><?php } ?>
But it displays the same like date (2 days ago) even when its not 2 days ago
my URL is
urbanmusichq.co
LMK
Hi Chris,
Can you explain practically how to do ??
give me examples
Manual minification of the theme style.css file
(e.g., /wp-content/themes/Newsmag/style.css)
Open style.css in a text editor, such as TextPad on Windows, BBEdit on Mac, or other pure “text editor” – notepad on windows works (NOT WordPad!!)
Go to http://cssminifier.com/
1) in your text editor, select all in the style.css file (CNTRL+A), and copy (right click copy, or CTRL+C)
2) paste into the left box on above website (right click paste or CTRL+V), click minify
3) copy all from right box
4) paste back into your style.css file on top (over/replace) — it should now look line one long string of code, not all the line breaks. This is what “minification” does; it removes spaces and line breaks (returns).
Optionally, make new text file called style.css and upload over the original (assuming you’ve made a backup). With a good text editor, you can also save with proper line breaks (for Unix servers, for example you should save stuff with “unix line breaks” and not “windows line breaks”) — hence something like TextPad 5 or BBEdit are good choices for this kind of stuff. Other freeware “programmer editor” software works, too.
This is how you manually minify the main style.css file. Must be done after every theme update; but literally takes less than 5 minutes.
You would need to replace the original style.css file either via FTP, or using a file manager in your hosting panel.
Yeah.
I would turn off everything except mod_pagespeed since it does the minify of HTML on the fly, removes comments, etc.
Use the tagdiv speed booster plugin which moves and enqueues scripts at bottom of page.
Use the functions.php file to add the remove query string code.
Use W3 cache if you don’t have mod_pagspeed connected to APC/opcache/memcache on the server (which can be configured in the master mod_pagespeed config file). But use the settings recommended by TagDiv.
example of some of my custom stuff in functions.php to remove query strings, visual composer credit, etc.
*NOTE:
this also includes code you might not need
a) remove visual composer CSS from post pages
b) remove pingback URL
c) change default WP thumb compression from 90 to 50 (some like 60)
d) remove yoast admin bar (annoying)
e) add go away message for people trying to login guessing passwords; great to use with limit login attempts
f) delete enclosure in RSS feed
g) disallow some things in comments for security
——————
/*CHRISTOPHER's CUSTOM MODS - 1.10.15 rev15A (c) 2010-2015 */
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 'You appear to be up to no good. Please stop 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'));
}
function dequeue_visual_composer_css() {
if (is_single()) {
wp_dequeue_style('js_composer_front');
}
}
add_action('wp_enqueue_scripts', 'dequeue_visual_composer_css', 1003);
Note: my “lineup” cannot be posted in an article someplace, or stuff like that; use if you wish. I have left out some other things most folks don’t need, but we do. 🙂
Hope that helps 🙂
Hi there
hope this is not a common question but i got to admit i haven’t found any information about it.
Well, i apologize for asking a such easy thing to do but i have to admit that i’m not confortable with “Less”.
The few times i worked on website design, i have used pure CSS which is to me really easier to manage.
So my intent is to create a login page on which i’d have droped off everything such as header, footer, sidebar, menu & so on. The only thing which will pop up being the login form
Thank you in advance for your help
Thanks Alin, but that didn’t fix it. Here’s an example.
Fz
Name is displayed on Facebook Open Graph when i click on Facebook Share button on any post on the page. How do I remove the author name?
Example, author name shows “Laura Caseley”:

Hi! I need help: I would create two new sidebar to add in the top-menu, next to the existing sidebar “top right (social)” to give best space at widget “basket” of woocommerce and widget “login form”.
Here’s an example to better understand http://screencast.com/t/pwvxknrG4an
Thanks for the help!
Hi, Radu
thanks; was afraid of that. I don’t want to use visual composer for anything in posts/pages, but it might be okay for the home page. Not a big problem or anything. 🙂
After 20 years of web development I’ve come to NOT want to rely on any plugin or framework too much as things come/go then don’t work anymore, etc. So, for example I still have posts from early days of WordPress where the tags were inserted at bottom with [tags ] … well, when that changed, I now have couple of years of content with bracket tags at bottom of posts.
Visual Composer is not a bad thing to standardize on as a theme seller, however since I’ve got websites that have been around longer than 90% of the web, I’ve gotten a little jaded on things. I ended up standardizing on Bootstrap for a lot of things, as they did excactly what we were doing around here of having small batches of code we’d re-use for things like accordions and tabs, and whatnot; and they put it all together, so that was great for us since it was pre-packaged and had classes all set for use.
I also used shortcodes for buttons years back, theme dev went DOA with WP3, now all the buttons were [button] and don’t work. So, not going to trust that for anything tied to theme/or VC. Color me paranoid 🙂
Right now I would not want to use visual composer for posts in any way as if they go under, in 5 years, my sites would have 5 years of broken elements, and I’ve seen that happen too many times now to “rely” on that for anything other than, say, the homepage or category page tops — as you’re very nicely doing, hence my adoption of the theme(s) you’ve been doing.
For example, I would not use shortcodes to change colors, create tables, or anything like that in a post.
I’m not sure if WordPress has a built-in responsive table class, but if not, that would be something GOOD from Bootstrap 3 to keep in your own framework as it was a nice solution for having a table that couldn’t entirely collapse become a fake inline frame with horizontal scroll. I guess I should actually play around with it. 🙂
In any case if you have a cheat sheet for your icon font to be able to use in content, similar to FontAwesome spans, that would be super cool. 🙂
And yes, having a more flexible grid for the layouts than how bootstrap does it, is great for the borders, and boxes, and all that. Nice job!
Chris
Hi there!
Around the time I updated to 1.4 a week ago it appeared that the website wasn’t showing any new articles. I could post, but it wasn’t visible on the front page or category or even the xml feed (which doesn’t work). According to the date on the top left page it was still January 28. Yesterday I tried to downgrade to 1.3, which did not resolve the problem, and updated to 1.5, turned on and off the theme and the website was updated and seemed to work.
But still, no new articles appear on the website and it’s still February 5 (after yesterday’s update). The feed, for example, did work yesterday but doesn’t work anymore too.
Any idea what might cause this problem? The website: http://www.electricautosport.com
I think I know a few things about wordpress, but I don’t know where to look..
Hope there is a quick fix.
Best regards,
Tim
Hello I use html Ads since are with flash and I use embed code
<embed src=”http://www.sample.com/Newspaper/banners/Banner.html” width=”728″ height=”90″></embed>
The banner is showing fine but the size is not Ok it is middle size in the mobile… since in the desktop and tablets it is fine…
This is for the header AD the sidebar banners 300 x 250 is fine is showing perfect… we only need 728×90 size of header AD
Hi,
Add the following code – http://screencast.com/t/IRBVWGV7
if (is_category()){
$args['orderby'] = 'title';
$args['order'] = 'asc';
}
And this one – http://screencast.com/t/ZLtG18fKOHF
function sort_category( $query ) {
if ( $query->is_category() && $query->is_main_query() ) {
$query->set( 'orderby', 'title' );
$query->set( 'order', 'asc' );
}
}
add_action( 'pre_get_posts', 'sort_category' );
Thank you, Emil G.
-
This reply was modified 11 years by
Emil G.
Thanks Lucian, now it looks great on iPad (portrait) too.
Actually Chris before posting I tried to paste the Soundcloud “WordPress code” on my post, for example:
[soundcloud url=”https://api.soundcloud.com/tracks/156661852″ params=”auto_play=false&hide_related=false&visual=true” width=”100%” height=”450″ iframe=”true” /]
but it wasn’t recognized. So, I tried the same approach as when embedding a Youtube video, meaning, just paste the link (url). In fact, two or three Newsmag’s template versions ago, the same problem happened when embedding a Youtube video: on iPad (portrait) the video occupies the sidebar. This issue was corrected on the penultimate version though.
Fz
-
This reply was modified 11 years by
felizubi.
hi thanks for this good Theme!
we have a site http://www.basvurular.tv
I have a few questions for editing this theme.
1. i want to delete comments link in the main page.

2. i want to generate Download link. For example; when a user click a link they can download this file to his computer.
3. http://www.basvurular.tv/kategori/basvur/tv/eglence-programi-basvurulari/
in the categories There are some empty spaces?

Can I add advertising to this empty spaces? How can i do?
thank
Hi,
I just finished creating a header main menu and all links seem to work, but when I click on the search icon (magnifying glass) on the Header Main menu, nothing happens.
What could be the reason for this & how can I fix it?
Thanks.
Rumi
Hi,
The theme already has an option to set a mobile logo also: http://screencast.com/t/GyibelsC04Nx and you can use a logo which fill the whole header: http://screencast.com/t/pst2kwqfDgKa
To implement the full screen header image like on the website you’ve offered as example you need additional customization as the theme doesn’t have an option for that.
A similar look will also provide the VC “homepage post” element: http://screencast.com/t/QaBJ0Be2v which you can set on a page built with VC page builder, here is an example: http://demo.tagdiv.com/newsmag_fashion/
This is how it looks on mobiles: http://screencast.com/t/TK4fSxot
Hope this helps!
Thanks
Credeam ca este forum english only 🙂
A mers codul dar daca las 2 articole in block(6), apar lipite (pozele) pe vertical. Am rezolvat problema cu doua block-uri separate cu space line intre ele. revin daca mai intampin probleme.
multumesc, AlexR.