- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsDefault Block Settings Guide
- TutorialsHow to use custom fonts
Hi Catalin
I’ve currently got this code in my custom CSS as per the above but nothing has changed at all on my site?
Also there is a red error message next to the first line saying expected RBRACE at line 162 column 1, any idea what that means?
Cheers!
Lauren
@media (max-width: 767px){
.td-header-main-menu {
height: 120px;
}
}
@media (max-width: 767px){
.td-main-menu-logo img {
max-height: 100px !important;
width: 200px;
}
}
Hello aldinlapinig,
If you want to add some background for your meta you should use a bit of CSS code to do that. Below I gave you an example for this.
.td-big-grid-meta{
background-color: black!important;
}
The result is here -> http://screencast.com/t/UcWpt88uMIm
Thanks for the message!
Hello,
Thank you for choosing newspaper.
1. There is no setting for it, but it can be done with css, Here is an example: https://forum.tagdiv.com/topic/header-image-7/
2. You can use this css in the them panel->custom css box:
.wp-caption-text{
text-align: center!important;;
}
3. Sorry but I do not understand the question.
4. Tab elements are provided by visual composer. There is no setting for a vertical tab though. As an alternative you could use an accordion element.
5. Sorry but the image you shown has nothing to do with the request. The image shows list types and the request is about author posts. You will have to provide more details
6. Again, the image has nothing to do with the question. You can set your own social sharing in the header and footer icons from the theme panel: http://screencast.com/t/IzPKtad0B8 but the post social sharing widget and the social counter do not have options to add any extra social sharing networks to them.
If yopu want to remove more from author, please follow this topic: https://forum.tagdiv.com/topic/remove-more-from-author-5/
Thank you!
hello,
I’m not sure what you want to achieve with css or how you want to change the taxonomy. Either way, this represents custom work and is not part of the theme support. We suggest hiring a freelancer to help out. You do not need the api plugin if you have the proper coding skills. The api plugin simply creates a new block. It has nothing to do with taxonomies. We suggest getting help from a developer because if you want to alter the taxonomy of a post, you cannot do that with css.
Thank you!
Hello,
The menu search can only be removed with css as there in so option to hide it.
Please use this code in the theme panel->custom css box
#td-top-search{
display:none!important;
}
Thank you!
Hello,
Our theme does not have any such option unfortunately. It was only added for the social counter. You can try to use css to alter them if you want. Here is an example:
.td-social-sharing-buttons{
background-color:grey!important;
border: 1px solid rgba(0, 0, 0, 0.5);
border-radius:20px;
}
result: http://screencast.com/t/7JyFCn74REe
or another one: http://screencast.com/t/ZIgglvx3bd or http://screencast.com/t/2vaQzKULy
It depends on the look you are after.
Thank you!
Hello,
The white margins are added with css. If you want to remove them, please use this code in the advanced css box under the mobiles section:
.td-a-rec-id-header_mob{
margin-top:3px!important;
margin-bottom:0!important;
}
Thank you!
Hello,
It can only be done with css. There is no setting in the theme panel for it.
Please use this code:
.post {
background-color: grey;
}
Thank you!
Hello,
You can try to add this css to the theme panel->custom css box:
.textwidget .alignnone{
margin-top:-5px!important;
}
It will affect all images that have the alignnone class and are inside a text widget.
Thank you!
Hello,
If this is just the front-end you are referring to, you can simply hide them with css like so:
.single-ai1ec_event .td-post-author-name, .single-ai1ec_event .author-box-wrap{
display:none!important;
}
If you want to remove them from the code you will have to add conditions in the thee files around the post author and the author box element.
Thank you!
Hello giulian curl,
You should use the category ID and then the display:none CSS rule, applied to Ad container for hide it. So, if you want a more accurate code in this regard, please provide your website URL so I can inspect it closer.
Thanks for the message!
Hello thilaxan,
If you want to increase the menu height you should use a bit of CSS code. Try the code below and place it in Theme panel->Custom CSS area.
The code is ->
#td-header-menu{
min-height:55px;
}
.sf-menu>li>a {
line-height: 55px;
}
Notice that you can adjust the values as you want.
The result you should see here -> http://screencast.com/t/MKTPfPnW
Thanks for the message!
Hello m0re,
If you want to hide the post date only for a specific block 8 you should use a bit of CSS code to do it. Also, to be more specific you should use the page ID for your desired page where you want to hide the date, like this -> http://screencast.com/t/JcojOIxYk
Hope this helps!
Thanks for the message!
Hello,
@tonikusi4, I have inspected your post pages, and I notice that you are using the single template style 1. Further, if you want to add some ads after to the related articles section you should edit the loop-single-1.php core file, based on the explanation above. If you want to have more than one Ad, you should use Custom Ad 2, 3, 4 with the do_shortcode method. After adding this, maybe you should use a bit of CSS to obtain a good design.
@jboursaw, I have checked your website and everything seems to look good. Thumbs up.
Thanks for your understanding!
Hello laurena86,
If you want to increase the height of your menu black bar you should use a bit of CSS to do that. Try the code below and place it in Theme panel->Custom CSS area.
The code is ->
@media (max-width: 767px){
.td-header-main-menu {
height: 70px;
}
}
You can change the height value as you wish.
Hope this helps!
Thanks for your understanding!
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.
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.
Thank you Bogdan. I resolved this problem by making the block-quotes “center” instead of “left” and changing the CSS within the “center” block quote.
Hello team,
We are facing lots of problem with the News Mag theme at our website fossbytes.com:
First: Icons are appearing in Chinese. We tried searching solutions online and found that lots of people are seeing the same problem. Why it isn’t a theme related issue if many people are having the Chinese icons problem with Newsmag? Also, at so many places we are seeing rectangle boxes. Here, I’m attaching few screenshots of the same.
https://1.sharebylink.com/1/?passcode=58318d081212e&parent=XwtqNQrJnobO
https://1.sharebylink.com/1/?passcode=58318d08121dd&parent=XwtqNQrJnobO
https://1.sharebylink.com/1/?passcode=58318dd541118&parent=614k9UJcQMv7
Secondly, the editor is divided into two parts and we are unable to fix it. It’s really hard to type anything in the editor.
https://1.sharebylink.com/1/?passcode=58318dd541077&parent=614k9UJcQMv7
https://1.sharebylink.com/1/?g0UdhAWxDFLC
As suggested by you on forums, we have changed everything in the .htaccess file, please find the content of .htaccess files below:
Header set Access-Control-Allow-Origin “*”
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /public/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /public/index.php [L]
</IfModule>
# END WordPress
<IfModule mod_headers.c>
<FilesMatch “\.(ttf|ttc|otf|eot|woff|font.css|css)$”>
Header set Access-Control-Allow-Origin “*”
</FilesMatch>
</IfModule>
This is the error we are seeing in console:
https://1.sharebylink.com/1/iqBoxUpload/15126137_1177141839044913_1141355589_o-(1)_WVSM1uqQjgtg.png
We have tried everything and we are unable to fix the problem. Please look into it.
We’ve already sent you the purchase code via email. Try searching fossbytes.com
And please don’t give us your pet replies like this isn’t a theme related issue or clear your caches and try to reply to your emails, otherwise, there will be no point of purchasing the theme and support.
This is my Current Problem. I Can’t install td-api-plugin one my site (https://dafunda.com). So I Decide to work with CSS instead, my question is how to make a CSS filter based on Taxonomy? i want to change dafunda.com/downloads taxonomies only
Hey Tag,
This is Siddhartha from Farbound.Net. I have been using your theme for some time now and I have to say this – it is just wonderful with its intuitiveness, stylish appeal and flexibility. Plus your updates never cease to surprise. Though my support expired a while back, I was wondering if you could still supply me with some answers.
1. Can the smart side bar by any chance and via custom CSS be made to recognize stretched rows? Say I use template style 3 with the right side bar operational and then put some stretched VC rows into the content. If I do this right now the sidebar flows right over the VC containers. If I can get the sidebar to float underneath the stretched content, nothing like it. Presently I am using visual composer to do this.
2. The Smart List is not supposed to work with Visual Composer, is it? I tried that on template 5 with visual composer, but the sidebar gets pushed right below the content. Also sometimes the NEXT and PREVIOUS BUTTONS overlap each other. Or am I doing something wrong here?
3. For templates that include the headlines and subtitles within the featured image, is there any way to adjust both the subtitles and headlines to appear better with some spacing when viewing on mobiles? Right now it becomes a jumble. But works well with just headlines. These would be template style 3 and template style 7. For an example: view this page (I noticed this on chrome with the browser size minimized) – Outpost of a vanishing world
4. I followed your instructions and successfully placed an advertisement just above the footer section with a stretched visual composer row, background-color applied. The ad was visible but the background-color was not. Did I miss something?
5. Do you plan to include new post templates in the future? A template that has the headline and subtitle on top of a rather large full width image. I am doing this right now with visual composer.
6. I noticed the social share box at the bottom has some space. Was wondering if it could accommodate a COMMENT icon inside as well along with the word ‘COMMENT’ or just the word. You know, once people reach the end of the story they can not only share it if they like but also find the COMMENT WORD there – clicking which they could directly reach the comment section. The comment icon presently available right now is very stylish but I feel not many are aware what the icon stands for. Yes, I am also well aware people who comment are very less, but since I still come across a lot of reputable media sites using the comment word big and bold, I assume the word does better than an icon.
7. Do you plan to include the option of using custom background-colors with advertisements? I managed to add a light grey to the header ad by coloring the wrapper via css but if an adblock is on viewers only see the grey box. Not that I mind, I can always put a message that says kindly turn your adblock off. Though if you do add in that option, would be very nice indeed.
Thanks
Hi,
I am using Block 8 on my home page sidebar and want to remove the Date on this particular block. What CSS i should use to remove it?. I don’t want to do it from Block Setting as it removes date from all blocks/modules but only the specific block 8
I pasted code into Advanced CSS box and refreshed my homepage but didn’t notice any change. Did I write it correctly? http://i68.tinypic.com/168sjmb.png
Hi,
This seems to be a css padding or margin. please provide a link to your site and I will provide the css needed to remove this blank space.
Thank you!
Hello ks2355244,
There is an option for it in Theme panel->Custom CSS area, like this -> http://screencast.com/t/RdfzcoXIYil
Thanks for the message!