- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsDefault Block Settings Guide
- TutorialsHow to use custom fonts
Hi
You need to add this code in td_module_slide.php:
$buffy .= '<div class="td-excerpt">';
$buffy .= $this->get_excerpt(20);
$buffy .= '</div>';
Change the number from get_excerpts() function if you want more words in excerpts.
You will also need this css in theme panel > custom code > custom css to change text’s color: http://screencast.com/t/SaHG6RceCrU
.slide-meta .td-excerpt{
color: white;
}
Thanks!
Hello goldfish45,
If you want to set a different image for your each page, please notice that you will have to use a bit of CSS for this. Try the code below and for each page, you will replace the page ID, like this ->
.page-id-1191 .td-banner-wrap-full{
background-image: url(http://demo.tagdiv.com/newspaper/wp-content/uploads/2016/05/login-mod.jpg);
background-size:100% 100%;
background-repeat: no-repeat;
}
The result you should see here -> http://screencast.com/t/e2IrwNtB7kT6
Also, if you want to use the same image for all your pages, you can remove the page ID.
This is a basic example which you should follow if you want to bring that changes. You will have to implement it yourself and check the results. If you are not aware of the further steps which are needed to take in this regard, please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry!
Thanks for the message!
hello :
please help me solve the issue my WordPress site width suddenly became very big.I tried to download the css and replace it with fresh but still the same issue . when i scroll in width a large white area appear with nothing inside it.
Hi I have custom ad slot 4 and 5 set with 2 different ad codes:
http://screencast.com/t/1cf33ZlfxbT8
Custom ad slot 4 is disabled on phone
Custom ad slot 5 is disabled on desktop, tablet l, and tablet p
So if set correctly that means custom ad slot 4 code should be displayed in source code for desktop and tablets. Custom ad slot 5 code should only be displayed on mobile
I am injecting the ads in loop-single using short codes: http://screencast.com/t/kZhSaXMVFB
However when I view source of the page, the css styles are being applied but both scripts are appearing in viewsource on the page: http://screencast.com/t/LOch5Chrs
Is there a way to only show the custom ad slot 4 code for desktop and tablets and only show ad slot 5 for mobile?
Thanks
Yep, so go look at the CSS used for a ‘page’ in Newspaper.
Use Chrome F12 to highlight the block of the paragraphs, find the class name for the page content without padding wrapper, and that is class to target along with paragraph.
Or, wait for TagDiv to help you. But good to learn to do some stuff like this on your own, for “control” of making your own mods.
Good luck!
-
This reply was modified 9 years by
simchris.
While waiting for tagdiv, try using the F12 console ‘inspector’ in Chrome to highlight the section of text to see the CSS ‘classes’ for that.
I also will be doing this on Newsmag, which I just figured out would be this:
.td-page-content p{font-size:16px;line-height:1.6em;}
Hello Federico909,
The child theme is only for PHP modifications and not from custom CSS. For your custom code, please notice that our theme has a special field for this, like this -> http://screencast.com/t/5nlrPZV8DJZp
For more information about child theme support, please consult here -> https://forum.tagdiv.com/the-child-theme-support-tutorial/
Thanks for your understanding!
Hello,
Unfortuanately there are no settings for this element. It cannot be customized. You can remove one or the other with a css trick
For example id you want to hide pinterest you would use this code:
.td-social-pinterest{
display:none!important;
}
You can add the code in the theme panel->custom css box.
Thank you!
It seem after all these years the settings of fonts size for pages in the control panel still don’t take effect, will can i have a css fix to make the fonts on my static page to 16px, because the default size is way to small on the eyes..
Hi Bogdan,
I’m really not that good with CSS. Is it this code that I should use?
@media screen and (min-color-index:0) and(-webkit-min-device-pixel-ratio:0)
{ @media {
.safari_only {
color:#0000FF;
background-color:#CCCCCC;
}
}}
What should I do with it to apply to my website?
Thank you.
Hello,
That is a big no,no with the custom css. We do not suggest altering the theme width .lots of elements will not position properly once you change the theme width. Our theme was built with a fixed width in mind and all elements depend on the fixed width .please try not to change the default theme width as you will create more problems than you expect.
Thank you!
Hi,
It seems you will need to add a bit of padding for safari only. here is how you can create a detect for safari:
http://stackoverflow.com/questions/16348489/is-there-a-css-hack-for-safari-only-not-chrome
Thanks.
Hello,
I assume you are referring to the top space on the homepage. Please try this code:
.home .td-main-page-wrap{
padding-top:2px!important;
}
You cna add the code in the theme panel->custom css box.
Thank you!
Hello,
Why the custom css works only in the theme panel and don’t work in the child theme that i have upload’ (the child theme that i have upload i the same folder there are present in the folder code)
Thanks
Hi,
Please remove all your css regarding the menus and just use this code:
.td-header-style-5 .td-header-menu-wrap .sf-menu > .menu-item-11805 > a{
color:yellow;
}
.td-header-style-5 .td-header-menu-wrap .sf-menu > .menu-item-11807 > a{
color:yellow;
}
.td-header-wrap .black-menu .sf-menu > .current-menu-item > a{
color:white;
}
In the code simply switch the menu item numbers to correspond to your menu item classes. You can see the menu item number if you use the browser inspector: http://screencast.com/t/STExSf01
Thank you!
ok, i have see this folder, but if i install this folder and change someting in the styel.css the site don’t add the my code. Why?
Hi Bogdan,
unfortunately, that seems not to help and I already tried it. I changed the color via the Visual Composer settings e.g. to grey and that happened: https://img1.picload.org/image/rdldpiad/blockchange.jpg
As you see, not the full bar changes the color, a part stays orange and I can’t change it. Next problem: Your solution doesn’t affect the sidebars.
So maybe it’s a CSS thing? I already changed the color in theme panel. Doesn’t help, too 🙂
Many greetings,
Bastian
Hello bigbangmd,
You will have to use a bit of CSS code for this. Try the code below and place it in Theme panel->Custom CSS area.
The code is ->
.td-header-main-menu {
background: transparent;
}
The result you should see here -> http://screencast.com/t/HWjXFhZteB
Thanks.
Hello,
Well did you try the code Andrei posted? Add the code in the theme panel-> custom css box and make sure all your previous code you may have in there has the proper closing tags.
The code provided works.
before: http://screencast.com/t/JWqgqYpOVV
after: http://screencast.com/t/6QWl0ctJ3LCO
Thank you!
Hi
I have a question again 😀
How to center both of featured image and post image
my custom advanced css is:
.td-main-content-wrap .td-container {
width: 770px;
border: none;
}
Thank you
Hi
Unfortunately that can’t be done with css, you will need to edit plugin’s files and add a condition there to remove the followers number from Social Counter. Try to edit td_block_social_counter.php file and add this condition like here: http://screencast.com/t/jMTBj1BJ0E4 – http://screencast.com/t/Ze8sHioZvXRD
if ($td_social_id != 'twitter'){
$buffy .= '<span class="td_social_info">' . number_format($social_network_meta['api']) . '</span>';
}
Thanks!
Hello,
I’m not sure where the issue comes from as we cannot recreate it on our end. There is a left margin added to the images that you can remove with this code:
.td-post-content .alignnone{
margin:0!important;
}
Add the code in the theme panel->custom css box
Thank you!
Hello bustedflushltd,
Unfortunately, our theme does not have any tested plugins that allow you to create a table, sorry! We have no idea about the theme behavior with this type of plugin and we cannot say for sure if it will work or not as properly with the theme, sorry! Also, please notice that we cannot provide custom work and support for untested plugins, sorry! You should try to find another plugin which works with the theme, or also, please notice that if you want to add some tables in your theme, you can use the HTML to add them in your backend, using the HTML ROW. As more references in this regard, you can consult some tables generator like this -> http://www.tablesgenerator.com/html_tables for this implementation.
So, if you want to hide some elements in tablets and mobile mode, you can use the @media queries which allow you to target the width of these devices and with a bit of CSS you can hide it in this regard. For more references about this rule, please consult here -> http://www.w3schools.com/css/css_rwd_mediaqueries.asp
If you want to make some customizations in site and if you are not aware of the steps which are needed to take in this regard, please consider hiring a freelancer/developer to help you because we cannot provide custom work at the moment, sorry!
Thank you for your understanding!
Hi Bogdan —
The “active color” CSS you gave me seems to be working, but the “non-active menu color” isn’t.
I put both of these in the custom code section. The menu item 50074 is the correct item. This menus in on our sandbox site at https://harrisrealestatecoaching.com, and our new production site at https://timandjulieharris.com.
Need help, and sincerely appreciate it! Have a great evening…
Hi
I followed the new tutorial, uploaded the new sprites and changes the lines of code and css but no luck
the icons doesn’t appear (http://www.greenplanner.it/2016/10/18/forum-terra-italia-sviluppo-sostenibile/)
the linkedin icon is void and the whatsup contains the linkedin one…
can you help please?
N.B. I deleted the cache obviously