- NewspaperWP Rocket and Newspaper Theme: Optimization Guide
- TutorialsFrom WPBakery to tagDiv Composer
- TutorialsDefault Block Settings Guide
- TutorialsHow to use custom fonts
Hi,
Thanks for your response, and while the code you sent fixed the issue (thank you), I have to say my sevlievo.com custom CSS was identical to that of velikotarnovo.com (until I added your code to the former), so the problem must be somewhere else. Could the reason be that the theme for sevlievo.com was purchased a few days ago, and that for velikotarnovo.com a couple of months ago?
In addition, that same line of the Top menu is a bit too far to the left, compared again to velikotarnovo.com. How can I fix that?
The original custom CSS I have for velikotarnovo.com is below:
@media(min-width:1021px){.td-header-style-1 .td-header-row {
width: 1023px;
margin-left: auto;
margin-right: auto;
}
}
@media(max-width:1021px){.td-header-style-1 .td-header-row {
width: 1023px;
margin-left: auto;
margin-right: auto;
}
}
.td-header-menu-wrap {
background-color: #000;
min-height: 48px;
}
.td-header-style-1 .td-header-row {
width: 1030px;
margin-left: auto;
margin-right: auto;
}
.td-header-sp-logo {
width: 272px;
float: left;
position: relative;
margin-left: 0;
margin-bottom: 8px;
margin-top: 8px;
}
.td-header-sp-rec {
float: right;
margin-bottom: 8px;
margin-top: 8px;
width: 728px;
position: relative;
}
@media (min-width: 768px) {
#td-top-search {
position: absolute!important;
top: 10%;
}
}
.td-header-container {
width: 100%;
}
@media(min-width: 768px) {
#td-top-search {
margin-top: 0!important;
position: inherit;
display: inline-block}
}
.td-header-menu-wrap:before {
background-color: #c00000;
content: “”;
display: block;
height: 4px;
}
.td-header-border:before {
height: 0;
}
.td-trending-now-wrapper {
background-color: #FFFF00;
height: auto!important;
}
.td-container-border > .td-pb-row:first-child .wpb_wrapper .td_block_wrap:nth-of-type(1) {
background-color: #FFFFFF;
}
@media(max-width: 768px){
.td-header-sp-rec,
.td-header-style-1 .td-header-row {
width: 100%!important;
}
.td-main-menu-logo img{
width: 75%;
}
}
@media (max-width: 768px){
.td-main-menu-logo img {
width: initial!important;
}
}
Hi,
The Slider element was not meant to be full width, so you have to do some custom work in order to achieve this. First you need to stretch the row containing the Slider – http://screencast.com/t/DmKqDNKXorX Then add this css in Theme Panel->Custom Css
.iosSlider-col-3 .entry-thumb {
width: 100%;
}
This is the result – http://screencast.com/t/8Apbk7Ub
As you can see the image thumb displayed in the slider is still the default size used by the slider element – http://screencast.com/t/bFCcimlnqY only stretched. To modify the thumb to a custom size so it will look better, you have to edit the td_api_thumb found here – http://screencast.com/t/iyhNuouo2PGn coresponding to the Slider on 3 columns. More about the theme API here – https://forum.tagdiv.com/api-thumbnail-introduction/
Make sure you regenerate thumbnails after you make the changes – https://forum.tagdiv.com/existing-content/
Thanks
Hello newbietamvan,
You can make the header âwideâ by changing the header section â we use style 8 âŠ
For the footer you can make it wide, via custom CSS.
try this (what I use) â
.td-footer-container {
width: 100%;
}
.td-footer-container .td-pb-row {
width: 1021px;
margin: 0 auto;
}
Thanks for your understanding!
Hello,
I suppose that you forgot to add the custom CSS code for your third website. Use the code below and place it in Theme panel->Custom CSS area.
The code is ->
.td-header-style-1 .td-header-top-menu {
top: 0;
}
Thanks.
Hello Bobby_Ocean,
If you want to change the background for your big grid meta, you should use a bit of CSS code to do that. Try the code below and place it in Theme panel->Custom CSS area.
The code is ->
.td-big-grid-meta{
background-color:red!important;
opacity:0.6;
width:100%!important;
}
The result is here -> http://screencast.com/t/Vkh4BcVx9uZ
Thanks for your understanding!
Hi Simion! Thank you so much, the CSS code has fixed the problem.
Thank you!
Unfortunately css cannot do that. That needs to be hard-coded. It;s easier to just use style 8 as it already has this functionality as it is no simple thing to do.
Thank you!
In the current version, the css needs an extra property as there were a few changes to the code Please use this code:
.single .author-box-wrap .avatar {
width: 150px!important;
}
.single .author-box-wrap .desc {
margin-left: 167px!important;
}
.author-box-wrap .avatar{
max-width:167px!important;
}
Thank you!
Hi,
If you use the mobile theme the footer will be a predefined one and it can only be altered with css. If you want to remove the footer logo and about us section you can use this css in the mobile theme custom code section:
.td-mobile-footer-wrap .td-footer-logo, .td-mobile-footer-wrap .td-footer-description{
display:none!important;
}
Thank you!
Hi,
Your header menu has a visibility hidden style property – http://screencast.com/t/D0TlW4Ti7 Try adding the code provided above. It will make the menu visible at all times, just add it in Theme Panel->Custom Css. Please let me know if it works for you.
Thanks
OK,
If you want to hide the sidebars for mobile phones you can use this code:
@media (max-width:767px){
.single .td-main-sidebar{
display:none!important
}}
Add the code in the theme panel->custom css box.
Thank you!
Yes, this is available for the default wordpress themes. Our theme already has this implemented in the theme panel under the custom code section so you do not have to use any child theme for any custom css. You can simply use the theme panel and all your css will apply with or without a child theme. If you do want to use a child theme and enque the css, then you should read this topic: https://wordpress.org/support/topic/theme-stanleywp-enqueuing-many-stylesheets-into-child-theme-in-correct-order/
Thank you!
Well if you want to have 2 dates show in your post, you can add the code mention in this topic without replacing the existing one https://forum.tagdiv.com/topic/how-to-make-this/
You can simply add this code:
<?php echo the_modified_date('l, F j, Y', '<div class="the-modified-date">LAST MODIFIED: ','</div>'); ?>
and place it after the get_date codee so you would have both dates. It could need a bit of css for positioning though.
Thank you!
Hello,
There are 2 ways you can remove these items. The first would be the css method by hiding them like so:
.td-social-google, .td-social-pinterest{
display:none!important;
}
The second method is removing them from the theme code by deleting these lines of code: http://screencast.com/t/GfKxrfhSgT21 (that is the top sharing buttons I exemplified. The bottom sharing buttons are further down that same file. If you want them removed from the bottom sharing remove them from the bottom code as well.)
Thank you!
Hi,
Please provide a link to your site so we can inspect the menu and fiddle with the css a bit and we will provide the proper code for changing each menu item’s hover color.
Thank you!
Hi,
Is it possible to set the featured image (if available) as the post background?
I want to use the Style 3, but I want the featured image to appear in the background (similar to style 8).
Maybe with some custom CSS…
Thanks
When using a child theme, the file js_composer.min.css is being loaded AFTER the parent and child theme style sheets. The documentation for a child theme adds the style sheets in functions.php using the function:
add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles', 1000);
However, when this loads the child theme, the js_composer.min.css file is loaded after the parent and child style sheets. Is this a bug or was it intentional?
If the priority above is changed to 1001, which matches the priority from the file td_wp_booster_functions.php (below), the style sheets are loaded in the correct order.
td_wp_booster_functions.php:
/* ----------------------------------------------------------------------------
* front end css files
*/
add_action('wp_enqueue_scripts', 'load_front_css', 1001); // 1001 priority because visual composer uses 1000
[vc_row][vc_column][td_block_trending_now header_text_color=”#ffffff” header_color=”#d74f22″ css=”.vc_custom_1474654487058{background-color: #ffffff !important;}”][td_block_big_grid_6 category_ids=”-35″][/vc_column][/vc_row][vc_row][vc_column width="2/3"][td_block_1 custom_title="MOST POPULAR" sort="random_7_day" limit="6" ajax_pagination="next_prev" css=".vc_custom_1479939771047{background-color: #ffffff !important;}"][/vc_column][vc_column width="1/3"][td_block_ad_box spot_id="custom_ad_2"][td_block_ad_box spot_id="custom_ad_3"][/vc_column][/vc_row][vc_row][vc_column][td_block_7 custom_title="Latest in Sports" custom_url="http://thedesertreview.com/category/sports/" category_id="37" limit="6"][/vc_column][/vc_row][vc_row][vc_column width="1/3"][td_block_ad_box spot_id="custom_ad_4"][/vc_column][vc_column width="1/3"][td_block_ad_box spot_id="custom_ad_5"][/vc_column][vc_column width="1/3"][td_block_ad_box spot_id="custom_ad_1"][/vc_column][/vc_row][vc_row][vc_column width="1/3"][td_block_15 custom_title=”Weekly Webcast” category_id=”1410″ limit=”1″][/vc_column][vc_column width="1/3"][td_block_text_with_title custom_title=”Weekly Newsletter: Subscribe”][rainmaker_form id=”85698″][/td_block_text_with_title][/vc_column][vc_column width="1/3"][vc_single_image image="89930" img_size="medium" onclick="custom_link" img_link_target="_blank" title="Weekly E-Edition" link="http://www.thedesertreview.com/wp-content/uploads/2016/12/combinepdf-22.pdf"][vc_facebook][/vc_column][/vc_row]
Hi,
I use News Magazine style on my blog but i want make a center text category on header menu ( main )
how to do it with css?
Thank you
Hello yanuargilang,
Try the code below and place it in Theme panel->Cusotm CSS area.
The code is ->
.wp-caption img {
max-width: initial!important;
}
The result -> http://screencast.com/t/Ny6JdLst9iQ
Thanks.
Hello Bogdan,
custom CSS code has to be inserted via child theme as described in official WordPress guide:
If your child theme style.css contains actual CSS code (as it normally does), you will need to enqueue it as well. Setting ‘parent-style’ as a dependency will ensure that the child theme stylesheet loads after it.
Please tell me how I need to modify the following script in order to personalise the theme CSS using child theme:
<?php
function my_theme_enqueue_styles() {
$parent_style = 'parent-style'; // This is 'twentyfifteen-style' for the Twenty Fifteen theme.
wp_enqueue_style( $parent_style, get_template_directory_uri() . '/style.css' );
wp_enqueue_style( 'child-style',
get_stylesheet_directory_uri() . '/style.css',
array( $parent_style ),
wp_get_theme()->get('Version')
);
}
add_action( 'wp_enqueue_scripts', 'my_theme_enqueue_styles' );
?>
Must be an unclosed tag in my CSS because when I dropped it at the top, it works đ
Thank you so much for your stellar support. Second to none!
Hi,
You can add those properties to the code like so:
.block-title span, .block-title a {
background-color: transparent !important;
color: #222;
font-family:verdana;
font-size:15px
}
Please note that a custom font cannot be placed with css if it’s not loaded first. Please use this topic to learn how to load fonts with css: https://forum.tagdiv.com/topic/problem-with-font-on-post-page/
Thank you!