- NewsmagtagDiv Composer Tutorial
- NewsmagBlock settings tutorial
- NewsmagLogo & Favicon
- NewsmagFooter templates
- NewsmagUsing other ads
- NewsmagUsing Typekit fonts
This one is very important for the V5,take all that white space out the theme and bring the images more closer…then we using a lot of CSS CODE just to removed it…because all this CSS CODE we using can really put a lot of stress on ur site and slow it down…
Hi Lucian, thanks a lot.
Thanks for helping me sorting out first two issues.
The only issue is about the 3rd one.
I didn’t modify any css. I didn’t delete anything. How can I add “backstrech” function back to newspaper theme?
how can I make sure I am doing it “right”
Yes, we switched Ga-ga.com to Newsmag … and still playing with it in my “spare time” … I have not fully optimized the new theme/site combo, so the old scores and such are not yet “up to speed” as it were.
For the site, we found that it worked a little better to have more of a “magazine” style layout (borders) than the newspaper layout, partly because we have some long form book serials/fiction, and .. well, anyway, YES… Ga-Ga.com is now running on NEWSMAG from the savvy folk at TagDiv. So, Newsmag was the right choice for this particular site, hence the switcheroo.
I have not yet
1) optimized the gravatar local caching
2) optimized fonts
3) minified the main CSS file manually
4) finished the home page; and menus.
5) fixed the logos, as I’m playing with changing logo design since it’s not technically a “done” website; the content there now is “mostly” stuff we’re rescuing from some older sites which are being retired and we’re keeping the good stuff for the new site, which will launch Jan.2015.
6) various other minor tweaks
Work in progress as of 12/12/14. đ
-
This reply was modified 11 years by
simchris.
Hi,
You can see here how to add an css class to the sidebar on each template which you can use after top set up you sticky sidebars: https://forum.tagdiv.com/topic/control-of-widget-headerslines-on-sidebar/
Hope this helps!
Thanks
Hi,
Use this css and set the font size as you like: http://screencast.com/t/iyyFsrFgC0Y1
.td-post-content .span12 .td_block3 .entry-title a {
font-size: 10px
}
Thanks
Hi,
That padding to the top was added to the block when used with tabs as the tabs title are to close to the top of block and don’t look well so you would have to not use background for that block as the 14 block it dose not have an background this is a special case in which the padding is need to add some space between the tabs and block. You could also use css and set padding to 0 and add margin which will not show the background anymore: http://screencast.com/t/LKIS0DnJT1
.wpb_tabs .wpb_tab .td_block_14 {
padding-top: 0px !important;
margin-top: 20px;
}
Thanks
So, I’m attempting to use the Theia Sticky Sidebar plugin with this theme and to set it up, it says this:
Sidebar CSS selector
This is the selector used to identify the sidebar(s). It’s usually something like “#sidebar” or “#secondary”. You can add multiple selectors by separating them with a comma “,”.
Container CSS selector
This must identify the element that contains both the sidebar(s) and the page content. It’s usually something like “#main” or “#main-content”.
I’m using a right sidebar on the posts. Can anyone tell me what I should write in the “Sidebar CSS Selector” and the “Container CSS selector” text boxes?
Thanks!
Hi,
I put your css into woocommerce.css. Now it’s working!
Thanks again, Lucian!
Hi,
You can use this custom css from below and set this arrows for all lists located into your post content, like this: http://screencast.com/t/FqABwGCuzm
.td-post-content ul li:before {
font-family: 'newsmag', sans-serif;
content: '\e803';
float: left;
margin-left: -19px;
line-height: 24px;
font-size: 14px;
}
The arrow list format is also present on pages and just like for posts you gave to add a list then highlight it and set the arrow format, like this: http://screencast.com/t/vkmsQnStbzn
Thanks
Hi Lucian,
thank you. It’s working when I use the live css tool. But nothing changes when I put it into the custom css section of the newsmag theme. I emptied the cache…
Any ideas?
Thank you,
Carolin
Hi,
You can try to use this css: http://screencast.com/t/ts88rkQI
.woocommerce .products .product {
width: 21.5556% !important;
}
.woocommerce .products .product:nth-child(3n+4) {
clear: none !important;
}
.woocommerce .products .product:nth-child(3n+3) {
margin-right: 2.66667% !important;
}
.woocommerce .products .product:nth-child(4n+5) {
clear: left !important;
}
.woocommerce .products .product:nth-child(4n+4) {
margin-right: 2.66667% !important;
}
Hope this helps!
Thanks
Hi can you check my site
i’ve a big problem with speedtest
and in mobile version the logo doesn’t appears.
Can you help me?
This is some of file td-speed-booster.php
/**
* Move the style only on newspaper
* @todo move the style also on newsmag after we fix all the issues
*/
if ($this->is_ie === false and TD_THEME_NAME == ‘Newspaper’) {
$this->move_style_to_footer(‘td-bootstrap’);
$this->move_style_to_footer(‘td-theme’); //this is the main style of the theme, it depends on td-bootstrap to load
}
$this->move_style_to_footer(‘google-font-rest’);
$this->move_style_to_footer(‘woocommerce_frontend_styles’);
//jetpack lost styles
$this->move_style_to_footer(‘jetpack-subscriptions’);
$this->move_style_to_footer(‘jetpack-widgets’);
$this->move_style_to_footer(‘easy-modal-site’);
$this->move_style_to_footer(‘tm_clicktotweet’);
$this->move_style_to_footer(‘contact-form-7’);
$this->move_style_to_footer(‘optinforms-stylesheet’);
$this->move_style_to_footer(‘rs-plugin-settings’);
$this->move_style_to_footer(‘teeoptimize-plugin-styles’);
$this->move_style_to_footer(‘boxes’);
$this->move_style_to_footer(‘google-font-rest’);
$this->move_style_to_footer(‘td-bootstrap’);
$this->move_style_to_footer(‘td-theme’);
$this->move_style_to_footer(‘js_composer_front’);
$this->move_style_to_footer(‘js_composer_custom_css’);
$this->move_style_to_footer(‘td-bootstrap’);
$this->move_style_to_footer(‘optimizepress-fancybox’);
$this->move_style_to_footer(‘optimizepress-wp’);
$this->move_style_to_footer(‘optimizepress-default’);
$this->move_style_to_footer(‘flare’);
$this->move_style_to_footer(‘flare-oswald-font’);
/**
* move javascript to footer
*/
$this->move_js_to_footer(‘themepunchtools’);
$this->move_js_to_footer(‘revmin’);
$this->move_js_to_footer(‘teeoptimize-plugin-script’);
$this->move_js_to_footer(‘optimizepress-loadScript’);
$this->move_js_to_footer(‘optimizepress-noconflict-js’);
$this->move_js_to_footer(‘optimizepress-loadScript’);
$this->move_js_to_footer(‘optimizepress-placeholder’);
$this->move_js_to_footer(‘optimizepress-fancybox’);
$this->move_js_to_footer(‘admin-bar’);
$this->move_js_to_footer(‘easy-modal-site’);
$this->move_js_to_footer(‘contact-form-7’);
$this->move_js_to_footer(‘jquery’);
$this->move_js_to_footer(‘placeholder’);
$this->move_js_to_footer(‘tp-tools’);
}
Some updates:
I changed background picture, made it bigger, but the problem was still the same with logo. The reason was margins in updated css file, they changed for logo depending on resolution, when i switched those margins to 0, the problem disapeared.
I also put social buttons to a separate div.
For now, i still have problem with logo in mobile view. There is just no logo there and header looks weird. It seems these things are related to each other. Can’t find on my own why is that..
And i still have a question about why is sidebar located after content part on mobile phones? Why i can see only left part of footer on mobile phones? Is it how the theme works or something else?
Best bet is to render page then figure out what the div class is for the form and then add some padding to that div class from the theme custom css box. I had to do this for disqus comments which had same problem with 1.0 version of Newsmag.
Hi,
You can set the post to the post template 1 then use this custom css to hide the featured image on post page using this css: http://screencast.com/t/QipVGOP52
.single_template_1 .td-post-featured-image {
display: none;
}
Thanks
Hi,
You can sue this solution: https://forum.tagdiv.com/topic/add-time-to-post-including-time-last-modified/ and add the <p>Last modified: <?php the_modified_date(); ?></p> into your post template where you want it to appear and on which post template you want it then use css to style it and set the format setting (e.g. F j, Y) from Administration > Settings > General.
Hope this helps!
Thanks
-
This reply was modified 11 years by
Lucian.
Hi,
That comes from the block container, you remove it or reduce via css, like this: http://screencast.com/t/ZYR1sCRWB
.td_block_1{
padding-top: 0px;
]
Thanks
Hi,
The widgets borders were initially conceived and designed this way as the you can’t add an option to disabled if not wanted so you can add it by using this custom css, like this: http://screencast.com/t/GkB5brdr45hH
.widget_nav_menu {
border-top: 1px solid #e6e6e6;
}
Regarding the color please note that from my tests all turned out to appear well but if you want to change it’s color you can also do it via css, like this: http://screencast.com/t/QWg7Qkc8My
.widget_nav_menu .widgettitle{
background-color: #D51111;
}
Thanks
Hi,
Sorry for the delay!
You can try to disable the google fonts from theme’s functions file kike this: http://screencast.com/t/9ttKQGkVdR
Then download your own custom font file/files and add them using this guide: https://forum.tagdiv.com/custom-typography/
After this use theme panel > custom typography filed and set your own custom font and for the remaining elements which you can’t change from there you can edit the style.css files and replace all font-families to your own font.
You can search online for the most common fonts used fro chinese audience download it and call from your server.
Hope this helps!
Thanks
-
This reply was modified 11 years by
Lucian.
I solved this problem. If someone helps do this:
In style.css change Post template 4 code with:
/* ----------------------------------------------------------------------------
Template 4
*/
.td-post-template-4 header {
position: absolute;
bottom: 0px;
}
.td-post-template-4 header .entry-title,
.td-post-template-4 header .td-post-sub-title,
.td-post-template-4 header .meta-info,
.td-post-template-4 header .entry-date,
.td-post-template-4 header .td-post-author-name a,
.td-post-template-4 header .td-post-comments a {
color: #ffffff;
}
.td-post-template-4 header h1 {
font-size: 24px;
line-height: 29px;
margin-top: 7px;
margin-bottom: 5px;
position: relative;
right: 2px;
/* responsive portrait tablet */
/* responsive portrait phone */
}
@media (min-width: 768px) and (max-width: 1023px) {
.td-post-template-4 header h1 {
font-size: 24px;
line-height: 29;
}
}
@media (max-width: 767px) {
.td-post-template-4 header h1 {
font-size: 24px;
line-height: 29px;
right: 0px;
}
}
.td-post-template-4 .meta-info {
margin-bottom: 16px;
/* responsive portrait phone */
}
@media (max-width: 767px) {
.td-post-template-4 .meta-info {
margin-bottom: 10px;
}
}
.td-post-template-4 .entry-thumb {
box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3) inset;
transition: box-shadow 0.2s ease-in-out 0s;
padding-bottom: 0px;
margin-bottom: 0px;
}
.td-post-template-4 .entry-crumbs {
top: 0px;
padding: 15px 0px 15px 0px;
}
.td-post-template-4 .td-post-header {
width:680px;
padding-top: 0px;
border-bottom: 0px;
}
.td-post-template-4 .td-post-sharing-top {
border-top: 0px;
border-bottom: 1px solid #e6e6e6;
}
.td-post-template-4 .td-post-featured-image {
min-height: 200px;
background-color: #444444;
/* responsive portrait phone */
}
@media (max-width: 767px) {
.td-post-template-4 .td-post-featured-image {
min-height: 182px;
}
}
.td-post-template-4 .td-post-featured-image .wp-caption-text {
bottom: 0;
color: #FFFFFF;
position: absolute;
right: 0;
margin-right: 20px;
max-width: 400px;
height: 17px;
overflow: hidden;
/* responsive portrait phone */
}
@media (max-width: 767px) {
.td-post-template-4 .td-post-featured-image .wp-caption-text {
display: none;
}
}
.td-post-template-4 .td-post-content {
border-top: none;
margin-top: 0px;
padding-top: 14px;
/* responsive portrait phone */
}
@media (max-width: 767px) {
.td-post-template-4 .td-post-content {
padding-top: 10px;
}
}
.td-post-template-4 .td-post-sub-title {
font-size: 16px;
line-height: 26px;
border: 0px;
padding: 0px;
}
In single_template_4.php delete all and paste this:
<?php
// Template 4 - post-final-4.psd - full image + overlay full title
//get the global sidebar position from single.php
global $loop_sidebar_position;
$td_mod_single = new td_module_single($post);
?>
<article id="post-<?php echo $td_mod_single->post->ID;?>" class="<?php echo join(' ', get_post_class('td-post-template-4'));?>" <?php echo $td_mod_single->get_item_scope();?>>
<div class="td-container">
<div class="td-container-border">
<div class="td-pb-row">
<?php
//the default template
switch ($loop_sidebar_position) {
default:
?>
<div class="td-pb-span8 td-main-content" role="main" itemprop="mainContentOfPage" itemscope="itemscope" itemtype="<?php echo td_global::$http_or_https?>://schema.org/Blog">
<div class="td-ss-main-content">
<div class="td-post-header td-container">
<div class="td-entry-crumbs td-pb-padding-side"><?php echo td_page_generator::get_single_breadcrumbs($td_mod_single->title); ?></div>
<div class="td-post-featured-image td-image-gradient">
<?php echo $td_mod_single->get_image('td_1021x580'); ?>
<header class="td-pb-padding-side">
<?php echo $td_mod_single->get_category(); ?>
<?php echo $td_mod_single->get_title();?>
<?php if (!empty($td_mod_single->td_post_theme_settings['td_subtitle'])) { ?>
<p class="td-post-sub-title"><?php echo $td_mod_single->td_post_theme_settings['td_subtitle'];?></p>
<?php } ?>
<div class="meta-info">
<?php echo $td_mod_single->get_author();?>
<?php echo $td_mod_single->get_date(false);?>
<?php echo $td_mod_single->get_views();?>
<?php echo $td_mod_single->get_comments();?>
</div>
</header>
</div>
</div>
<?php
locate_template('loop-single-4.php', true);
comments_template('', true);
?>
</div>
</div>
<div class="td-pb-span4 td-main-sidebar" role="complementary" itemscope="itemscope" itemtype="<?php echo td_global::$http_or_https?>://schema.org/WPSideBar">
<div class="td-ss-main-sidebar">
<?php get_sidebar(); ?>
</div>
</div>
<?php
break;
case 'sidebar_left':
?>
<div class="td-pb-span4 td-main-sidebar" role="complementary" itemscope="itemscope" itemtype="<?php echo td_global::$http_or_https?>://schema.org/WPSideBar">
<div class="td-ss-main-sidebar">
<?php get_sidebar(); ?>
</div>
</div>
<div class="td-pb-span8 td-main-content" role="main" itemprop="mainContentOfPage" itemscope="itemscope" itemtype="<?php echo td_global::$http_or_https?>://schema.org/Blog">
<div class="td-ss-main-content">
<?php
locate_template('loop-single-4.php', true);
comments_template('', true);
?>
</div>
</div>
<?php
break;
case 'no_sidebar':
//td_global::$load_featured_img_from_template = 'art-slide-big';
td_global::$load_featured_img_from_template = 'full';
?>
<div class="td-pb-span12 td-main-content" role="main" itemprop="mainContentOfPage" itemscope="itemscope" itemtype="<?php echo td_global::$http_or_https?>://schema.org/Blog">
<div class="td-ss-main-content">
<?php
locate_template('loop-single-4.php', true);
comments_template('', true);
?>
</div>
</div>
<?php
break;
}
?>
</div> <!-- /.td-pb-row -->
</div>
</div> <!-- /.td-container -->
</article> <!-- /.post -->
Now, go to the Theme panel in Post Settings activate Post style 4.
Good luck đ
Hi,
Please try this custom css to remove the more article box on mobile only:
@media (max-width: 767px) {
.td-more-articles-box{
display:none;}
}
}
Thanks
Hi,
1. Use custom css like this: http://screencast.com/t/BlQ85pVAYJ
.similar-articles {
padding-bottom: 0px !important;
}
.similar-articles .td_mod_wrap {
margin-bottom: 0px !important;
}
2. You can’t set 3 posts like you have in your screenshot only if you don’t use a sidebar for your page and in that case the similar articles will appear like this: http://screencast.com/t/jUJ8sPzUWng
Thanks
Hi,
Using header style 3 should be enough to allays show the ad under the menu on all pages. I have also checked your site but haven’t found any header ad set: http://screencast.com/t/kYOH0V3P3Hbf so I can’t guarantee it will work but for the space you have under the banner you could try this css and remove the margin bottom by setting it to 0px or as you like. Here is an example: http://screencast.com/t/ivXEoqh8
.header-content-rec .td-a-rec-id-custom_ad_1, .header-content-rec .td-g-rec-id-custom_ad_1 {
margin-bottom: 0px;
}
Hope this helps!
Thanks
what if i directly add this code: <?php do_action(âcontentadâ); ?>
to loop-single-7.php or comments.php?
is there any easier way to do it? i am familiar with css and html but not php, please help!
what kind of custom css? i’m beginner