- NewspaperCreate Custom Code with the browser’s Inspector or the Live CSS Box
- NewspaperScroll Animation
- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- NewspaperHow to setup Twitch for Social Counter
- NewspaperModal Popup
- NewspaperFlex Block Settings Guide
- NewspaperAutoptimize Plugin – install and configuration
- NewspaperAdding Multiple Authors to Your Articles
- NewspaperDesign your Post Pages using the Cloud Library Templates
- NewspaperBig Grid Flex Settings
- NewsmagtagDiv Composer Tutorial
- TutorialsFrom WPBakery to tagDiv Composer
- NewspapertagDiv Composer Tutorial
- NewspaperTheme modules and blocks
- TutorialsDefault Block Settings Guide
- NewspaperThe Mobile Theme
- NewspaperCompare theme files – Winmerge tutorial
- NewsmagBlock settings tutorial
- NewsmagLogo & Favicon
- NewsmagFooter templates
Thanks Bogdan.
I took a look at that file, and yes, way beyond my skills.
I realize that I’m pushing the smart list outside of it’s intended scope but I did find a workaround for those that might want to do the same. It seems that the smart list functionality uses the CSS class wp-image-xxxx (replace xxxx with the image ID) to identify and reposition the images in the smart list layout. That class is added when you insert an image with the Add Media button in the editor.
To override the core smart list functionality you simply need to remove that class. One option is to manually remove it by going through the code in Text mode.
Another option is to apply a filter to always remove/change that class when using the Add Media button. To do that, add the following to your functions.php file:
/* Strip out wp-image css class when using Add Media button */
function filter_image_send_to_editor($html, $id, $caption, $title, $align, $url, $size, $alt) {
$html = str_replace('wp-image-', 'id-image-', $html);
return $html;
}
add_filter('image_send_to_editor', 'filter_image_send_to_editor', 10, 8);
Instead of removing the class completely, we chose to change the it from wp-image-xxxx to id-image-xxxx just in case we need to use for another purpose in the future.
-
This reply was modified 10 years by
five40.
At first I was importing stylesheets putting in the style.css of my child-theme, @import url (“css / nameofmystyle.css”), it works but…
I see all over the web that the method is wrong.
that I must use the function file.
So I created a css and js folder in my child theme.
in the css folder I put style01.css and style02.css
and in the js folder and I put style01.js and style02.js
I’m looked on the internet and tried many method I found, but I do not get called my css and js file I need for the static content of certain pages.
my function.php file is at the moment like this:
<?php
/* ----------------------------------------------------------------------------
Newspaper 6 Child theme - Please do not use this child theme with older versions of Newspaper Theme
What can be overwritten via the child theme:
- everything from /parts folder
- all the loops (loop.php loop-single-1.php) etc
- the rest of the theme has to be modified via the theme api:
https://forum.tagdiv.com/the-theme-api/
*/
/* ----------------------------------------------------------------------------
add the parent style + style.css from this folder
*/
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', 1000);
function theme_enqueue_styles() {
wp_enqueue_style('td-theme', get_template_directory_uri() . '/style.css', '', '6.1c', 'all' );
wp_enqueue_style('td-theme-child', get_stylesheet_directory_uri() . '/style.css', array('td-theme'), '6.1c', 'all' );
}
Thank you in advance for your help again
Hi guys i need your help again.
Pls check this – http://gto.travel/events/acuarela-duo-recital-a-dosguitarras/
Any advise? i need a ‘normal’ view and i think is a css theme issue.
Gracias
Hello,
I’m not sure exactly what white space you mean to remove but i assume it’s the one under the logo
You can use this custom css to remove some of the space:
.page-id-38 .td-header-style-9 .td-logo-wrap-full {
min-height: 70px!important;
}
.page-id-38 .td-header-menu-wrap-full{
height:0!important;
}
Thanks.
Hi,
The theme was designed to support the woocommerce plugin,as we created some woocommerce templates to help our users and also we customize it a little using css code, but we did not alter the code for woocommerce elements. Also the tagdiv blocks were not designed for woocommerce products, they works with default posts types and you will need custom modifications for this and it is not an easy task, sorry!
You can try this solution and use custom field for posts(not products) and you will be able to display the price on modules/blocks – https://forum.tagdiv.com/topic/block-modificationsadditions-custom-field/
Doing this change requires some php/html/css experience, so I suggest to get someone to help you with this.
Thanks!
Hello,
You can use this custom CSS in the theme panel-> custom css box for the moment.
@media (min-width:1019px){
#buddypress div#item-header #item-header-cover-image #item-header-content {
margin-left:0!important;
margin-right:0!important;
position:absolute!important;
top:145px!important;
}
}
@media (min-width: 783px) and (max-width: 1018px){
#buddypress div#item-header #item-header-cover-image #item-header-content {
margin-left:30px!important;
margin-right:0!important;
position:absolute!important;
top:145px!important;
}
}
I hope this helps.
Thanks.
Hi,
You have an option to set primary category for each of your posts, if you have multiple actegories – http://screencast.com/t/yUqDh7m2pffT If you don’t set the primary category, it will display on modules the first category in alphabetical order.
The color of the category on modules/blocks can be changed using custom css in Theme Panel > Custom Css – http://screencast.com/t/VOkPxAWbnJe
.td_module_wrap .td-post-category {
background-color: #BB391B;
}
It will not take the color that you set in Theme Panel for each category, this will be applied only for post pages – http://screencast.com/t/NTdZL30M7bRS If you need this you need custom modifications to change the get_category function used on modules – http://screencast.com/t/jPN396cW3 like Bogdan suggested above take at reference the function used for categories on post pages – http://screencast.com/t/gct7mUgA6HFy
I suggest to get someone to help you, as the time doesn’t allow us to provide custom work, sorry!
Thanks!
Yes I understand its a early problem considering that update just recently came out. And yes its a css-error
smpc.se/hzv2695vn8/ thats the current link you have to use for the page, as its currently hidden
user: testuser2
pass: testuser234
-
This reply was modified 10 years by
Peter Blom.
Hi
Your code is missing the loop part which check if there are any post to be displayed on the page. A basic loop example it’s in this code:
<?php if ( have_posts() ) ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="td-container"> //the theme uses this classes for
<div class="td-container-border"> //post/page content
<?php the_content(); ?>
//you can place a custom code here, depending by your needs
</div>
</div>
<?php endwhile; ?>
The theme display the page content using this classes: td-container, td-container-border You can replace them if you want but in this case you need to create your own css for layout. Also you can use your classes within theme’s classes like this:
<div class="td-container"> //the theme uses this classes for
<div class="td-container-border"> //post/page content
<div class="img-header-home">
<div class="container mt-130 z-index100">
My static content
<?php the_content(); ?>
//you can place a custom code here, depending by your needs
</div>
</div>
</div>
</div>
You can check this example code here: http://pastebin.com/8E0XZ8de which produce this result: http://screencast.com/t/p8SsR9P2x9W – http://screencast.com/t/N95ikdPhHY
This is a basic example, but you can customize your page template as you need by ading different conditions in that file. For more information regarding WordPress loops you can check the official documentation: https://developer.wordpress.org/themes/basics/the-loop/
Hope this help.
Thanks!
-
This reply was modified 10 years by
Andrei L..
Hello,
The version of buddypress we have tested to work with our theme was the previous one that did not have this feature. We did not have the chance to test the new version with our theme so problems such as this could occur.
I will add this problem to our list and hopefully in our next update we will be able to implement a solution for it. This seems like a css issue, and maybe it can be adjusted until the next update. Please provide a link to your website (pointing at the problem itself) so we can inspect it.
Thank you for your understanding.
Hello,
You can use this custom css to increase the white space sitewide:
@media (min-width: 1180px){
.td-boxed-layout #td-outer-wrap {
width: 1330px!important;
}
}
This code will only add more white space without affecting the elements.
If you plan on making the elements wider as well, then keep in mind that the theme was created with a column layout. Every width modification you do to the main container will affect all the other elements and you will have to adjust these as well.
I hope this helps.
Thank you!
Hi
You can use theme API to modify the current thumbs available on the theme, or add a new one: https://forum.tagdiv.com/td_api_thumbadd/ Also you can use this css in theme panel custom css to increase the height oh the image: http://screencast.com/t/XBwaLIpm
.td_block_16 .td_module_mx4 .entry-thumb{
min-height: 200px!important;
}
Thanks!
Trank you for your reply.
But the code I mentioned I just out this last hours.
Without this code the element in the sidebar.m, in my case the ad, I just showing up the half of it. Like 100px width.
So I put this css code to see the ad in mobile.
As I said, the problem isn’t at the homepage.
In homepage site everything seems fine.
But on post pages the sidebar element breaks to the bottom.
And then on mobile screen u can see only the half of the element. Because I think there is something which is blocking.
Thx.
Hi
We will investigate this issues and hope we can came up wit a solution soon. Meanwhile try this css, it should work sine: http://screencast.com/t/7foyTZkfx9
.groups #buddypress div#item-header div#item-actions{
left: 0;
top: 62px;
}
#buddypress div#item-header ul {
display: block;
}
Thanks!
Hi André,
You can change the color of the social color footer if you use the code below in Theme panel->Custom Css area, like this: http://screencast.com/t/behdBQuOPqHx
.footer-social-wrap i {
color: red;
}
The result should see here: http://screencast.com/t/rwLjFaRR7
Thanks!
Hello,
You can use this custom css to adjust the alignment on the mobile version:
@media(max-width:782px){
#wpadminbar *{
font: 400 13px/32px "Open Sans",sans-serif!important;
}
#wpadminbar li[id^="wp-admin-bar-ub_admin_bar"] a {
padding: 0px 8px!important;
}
}
Thanks.
Hi SamuelWright,
Below you can find the full code by default for the block quote in posts. You can change/adjust this values as you like and then you have to put it in Theme panel->Custom Css area with new changes, like this:
http://screencast.com/t/iUPGyiLNX
.td-post-content blockquote p {
font-family: 'Roboto',sans-serif;
font-size: 32px;
line-height: 40px;
font-weight: 400;
font-style: italic;
text-align: center;
text-transform: uppercase;
color: #4db2ec;
}
}
Hope this helps and then let us know how it goes!
Thanks!
Please make sure that you disable html/css/js minify option because usually the automatic compression of these resources could cause issues like the one you describe above.
We don’t recommend using an autominify tool as this could generate js conflicts and break features that use js to function, like in your case smart sidebar did.
Hope this help.
Thanks!
Hi SamuelWright,
Please try the code below in Theme panel->Custom Css area like this: http://screencast.com/t/PuMLbpWgJep
.footer-email-wrap a {
color:white;
}
The result should see here: http://screencast.com/t/dQiuvlM9I
Thanks!
Hello,
Try using this HTML code:
<div id="newsletter" style="text-align: center;">Want the latest articles in your mailbox weekly? Subscribe below! <p>[mc4wp_form]</p> We respect your privacy 100%. We don't spam. Ever!</div>
Use the same CSS and the result will be this: http://screencast.com/t/VpykdJnLdZ
Thank you Bogdan – It helped a lot.
I need a small css help to complete logo alignment in menu bar.
Screenshot:-
http://www.screencast.com/t/j7qUaoEAfErL
steps to reproduce:-
i) Login to http://www.viralbae.com
ii) After login it will be redirecting to homepage
iii) Site Logo is seen in top left corner.
Note: The logo misalignment issue happens in mobile only.
Kindly advice.
Thanks!
What happens if we have more than one menu item to hide on desktop and show on mobile? Is it a separate chunk of css code for each one or can the hidden menu items be listed in a single line of code? Please show me an example of the css code for hiding two menu items so that they only appear on mobile.
Thanks!
Hi, i have a little problem, may be you can help me.
I tried to create a original homapage, or may be just a header fullsize, but it is not the point.
I create a new php file with sublimetext, in that php file i put :
<?php
/*
Template Name: Home
*/
?>
<?php
get_header('home');
//set the template id, used to get the template specific settings - this was the old home.php template
$template_id = 'home';
//prepare the loop variables
global $loop_module_id, $loop_sidebar_position;
$loop_module_id = td_util::get_option('tds_' . $template_id . '_page_layout', 15); //module 1 is default
$loop_sidebar_position = td_util::get_option('tds_' . $template_id . '_sidebar_pos'); //sidebar right is default (empty)
// sidebar position used to align the breadcrumb on sidebar left + sidebar first on mobile issue
$td_sidebar_position = '';
if($loop_sidebar_position == 'sidebar_left') {
$td_sidebar_position = 'td-sidebar-left';
}
?>
<div class="img-header-home">
<div class="container mt-130 z-index100">
My static content
</div>
</div>
here
<?php
get_footer();
i put my php file in the hosting where wordpress are installed, and from wordpress, i create a page, and choose from template my php file “Home”.
now under My Content <div class = “img-header-home”> I want to add some dynamic content that retrieves items from my blog.
And if it can be added by visual composer on this page. Because I try to create content with but it does not appear online.
I think something is missing (i mean some code php) to recovered the visual composer tomake it works.
i understand html, css, but not more in php, that’s why i need your help.
i’m sorry my english is bad, I hope u can understand.
Thanks in advance.
Don’t know if you can also give CSS code to fix the avatar hovering over group description too and fix in one of the next updates as with other. See image of a group and current user avatar is hovering over the description which I think should not be like that.
![]()
Hi insidestl,
You can try the code below in Theme panel->Custom Css area like this: http://screencast.com/t/HCqdvYMHLP9
.td-header-style-6 .td-a-rec-id-header > div {
margin-top: 10px!important;
}
The result should see here: http://screencast.com/t/yomylI9k
Hope this helps and let us know how it goes!
Thanks!