Search Results for 'css'

Results from the Forum
zlato
Participant
#0

Chris Thank you for your contribution to the community.
I followed the instructions and reached grade 99/100.

When I withdrew the contents of functions.php I collapsed vps server. :(.
What is the procedure when you work with functions.php?
I noticed that the laoding time grew from 2.2 sec to 2.4 sec.
Does anyone have useful advice for mobile devices out there but I have 50. I use WP-rocket.

i put this in end of my file ( i use newspaper 6.3.2 ):
/*CHRISTOPHER’s CUSTOM MODS – 1.10.15 rev15A – (c) 2010-2015 Chris Simmons */

remove_action( ‘wp_head’, ‘wp_generator’ ) ;
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 );

add_filter( ‘pre_comment_content’, ‘wp_specialchars’ );

function no_errors_please(){
return ‘You appear to be up to no good. Please stop now!’;
}
add_filter( ‘login_errors’, ‘no_errors_please’ );

/* Disable YOAST SEO Admin Bar. */
function mytheme_admin_bar_render() {
global $wp_admin_bar;
$wp_admin_bar->remove_menu(‘wpseo-menu’);
}
// and we hook our function via
add_action( ‘wp_before_admin_bar_render’, ‘mytheme_admin_bar_render’ );

function delete_enclosure(){
return ”;
}
add_filter( ‘get_enclosed’, ‘delete_enclosure’ );
add_filter( ‘rss_enclosure’, ‘delete_enclosure’ );
add_filter( ‘atom_enclosure’, ‘delete_enclosure’ );

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 );

add_filter( ‘jpeg_quality’, create_function( ”, ‘return 50;’ ) );

function remove_pingback_url( $output, $show ) {
if ( $show == ‘pingback_url’ ) $output = ”;
return $output;
}
add_filter( ‘bloginfo_url’, ‘remove_pingback_url’, 10, 2 );

add_action(‘init’, ‘myoverride’, 100);
function myoverride() {
remove_action(‘wp_head’, array(visual_composer(), ‘addMetaData’));
}

function dequeue_visual_composer_css() {
if (is_single()) {
wp_dequeue_style(‘js_composer_front’);
}
}
add_action(‘wp_enqueue_scripts’, ‘dequeue_visual_composer_css’, 1003);

sirajcmr
tagDiv Member

Hi,

How about creating a locked sticky page with known bugs with Newspaper 6.3 and css codes to fix the bugs.

trust me, it saves a lot of time and for us 🙂

Regards
Siraj

betterretailing
Participant
#0

Hi guys,

I thought I would share this in case anybody had the same problem.

After upgrading to Newspaper 6 I experienced lots of problems with plugin Ultimate Add Ons for Visual Composer. Very annoying as I use it everywhere.

In case you have similar problems with this (incorrectly displaying, freezing, etc) the solution is to update to the latest version of the plugin, go to the plugin settings and under the “Scripts and Styles” tab set “Optimise CSS” and “Optimise JS” to ON.

As you were.

sirajcmr
tagDiv Member

Thank you. It worked for two types of post.There is one more post where I need to fix it. Please check this screenshot:

http://s7.postimg.org/u66nlvdhn/8_14_2015_4_29_50_PM.gif

Screenshot

After inserting the css code you shared, I find it gets exexuted only once page is loaded. I can feel like the whole page goes down for 21px. Is this how it suppose to be..

Regards
Siraj

servitium
tagDiv Member

yeeehhh 🙂
Custom CSS code inserted in the panel Newspaper cause a problem.
Thank you for the tip.

Emil G
tagDiv Staff

Hi,

You could use the backup to create a clone on your local computer and recover the custom css. You could try to import the database on your local install and search for the theme settings inside it using phpmyadmin – http://screencast.com/t/Bigk06uVdLhttp://screencast.com/t/Icpzdbxnvlpbhttp://screencast.com/t/uzj9jzibHChttp://screencast.com/t/A00YBwJJxdIe

Thank you!

Andrei L.
tagDiv Member

Hi

The theme it’s designed to handle just adsense, img/flash banners ad codes you can find a detailed explanation in this regard in our ads guide here: https://forum.tagdiv.com/ads-system-full-guide/

We recommend using those div’s from our docs to place other types of banner and the padding property it’s set on img tags so because you’re using a different ad system than ad-sense the theme’s css it’s applied only on ad classes, not to the ad content.

You can also try to use a plugin to render your ad code like suggested in the documentation.

Try this custom css to padding the header and sidebar ads:

.td-header-sp-ads .td-a-rec {
padding-top: 10px;
padding-bottom: 10px;
}
.td-a-rec-id-sidebar{
padding-left: 20px;
}

You can modify the values as you like, here id the ruslt: http://screencast.com/t/FqZ8Mb8r3z

Thanks!

Lucian
tagDiv Staff

Hi,

You can try with custom css, like this: http://screencast.com/t/VPoExzky

.td-header-style-8 .td-header-sp-logo a {
max-width: 300px;
margin: auto;
}

Thanks

Alin [tagDiv]
tagDiv Staff

Hi,

I have added this on our to do list and it will be fixed as soon as possible.
Please try this fix for your issue, add this css code in Theme Panel > Custom Css for custom ad issue:

.single .td-g-rec-id-custom_ad_2 {
margin-bottom: 0 !important;
}
.single .td-g-rec-id-custom_ad_2 .adsbygoogle {
margin-bottom: 20px !important;
}

And this css for inline ad:

.single .td-g-rec-id-content_inlineleft {
margin-right: 0 !important;
}
.single .td-g-rec-id-content_inlineleft .adsbygoogle {
margin-right: 21px !important;
}

Hope this helps!

Andrei L.
tagDiv Member

Hi

Thanks for reporting this, I’ve added on our list and will be fixed in the next theme’s update. Meanwhile you can use this custom css to increase the space between the featured image and post content:

@media (max-width: 767px){
.td-post-template-8 .td-main-content {
margin-top: 21px;
}
}

Here it’s the result: http://screencast.com/t/9tfUgXpWEg

Thanks!

Alin [tagDiv]
tagDiv Staff

Hi,

Header
– If you don’t use site background color/image the header section should be full width – http://screencast.com/t/zeBrt7dXET9m
– You could use shortcode in the header add if you want to create something using pagebuilder or if you use a plugin.
– Not sure what you mean. Do you want to replave the top menu? Here is the code – http://screencast.com/t/QNiR3cX0TapE
– Do you refer to this border? – http://screencast.com/t/X46X4Gxd7xm You can hide it via custom css in Theme Panel > Custom Csshttp://screencast.com/t/ElIiCYGO07

.sf-menu > li > a:after {
display: none;
}

– You cab add a custom ad under the menu if this what you mean, but you have to edit the code and use this code – http://screencast.com/t/hw2h1wwxRTaVhttp://screencast.com/t/F0jF0ilBqK

<?php echo td_global_blocks::get_instance('td_block_ad_box')->render(array('spot_id' => 'custom_ad_1')); ?>

Footer
Also the footer area should be full width if you don’t use background. Unfortunately if you use it the site will automatically switch to boxed version

Thanks!

Alin [tagDiv]
tagDiv Staff

Hi,

12. You can reduce this space via custom csshttp://screencast.com/t/JhjYIx5GL

.home .td-main-page-wrap {
padding-top: 20px;
}

Thanks!

Alin [tagDiv]
tagDiv Staff

Hi,

Try to use this custom css for search button – http://screencast.com/t/uSMIrHFjcdvo

.search-page-search-wrap input[type=submit] {
background-color: #ff1543;
}

Also if you want to change the color for menu search button you can try this – http://screencast.com/t/ZBRKsHph

.td-drop-down-search input[type=submit] {
background-color: #ff1543;
}

Thanks!

Alin [tagDiv]
tagDiv Staff

Hi,

Please remove custom css code(if you have any css code there) and also try check this without the header ad and see if it is fixed.
If you still have this issue, please send an email at contact@tagdiv.com and provide wp-access so we can take a look, also paste a link to this topic so we can know who you are and what your issue is.

Thanks!

Daniel Finch
tagDiv Member

So, having backed up before installing Multisite would the CSS be in the database of that backup? And where would that be found?

simchris
tagDiv Member

Most themes do that now for the “custom CSS panel” in the theme — if they wrote that to a file like in the old days, then every time theme was updated people would lose all their custom CSS; so having it in the panel with the dbase means it can be saved/exported with the theme options (typically).

I’ve gotten in habit of saving stuff into a work folder along with ftp backup; and name the files things like snip-customcss.txt snip-functionshax.php etc.

RDodds82
tagDiv Member

Okay I was checking. I was going the custom CSS route but I wanted to make sure that was the best way. Thanks

simchris
tagDiv Member

I don’t think there is a custom CSS file — custom CSS added to the theme panel goes into a field in the dbase, I believe. Always good to backup your custom CSS to a text file from time to time, as I do.

If you mean the main style.css, that is of course in the main /theme/ folder. There are other CSS files also found in the /includes/ folder.

But wait for tagdiv support to possibly provide a better answer.

vahdet
Participant
#0

Hi,

I just updated the theme to the latest one. But category names doesnt show up on home page. No custom css is written, no related plugin (such as hide categories) is activated, none of the “HIDE CATEGORY ON POST AND ON CATEGORY PAGES” option is switched on for categories. It still doesnt show up neither in home page or category pages. They do only show up on single posts.

What could be the problem?

Thanks.

Web site: http://bit.ly/1P9N2HA

Daniel Finch
Participant
#0

Hi everybody,

I’m desperately looking for the custom CSS file in one of my back-ups as I have just installed MultiSite and all my CSS has been deleted. Does anyone know where I can find the file so I can copy and paste from a back up?

Lucian
tagDiv Staff

Hi,

You can chose the desired header style from theme panel > header: http://screencast.com/t/K3lDjyvFDA4https://forum.tagdiv.com/header-styles-newsmag/

Foe the footer there is no theme panel option to make it full width but you can do it using custom css, just add the css code from below int theme panel > custom css section: http://screencast.com/t/iZdC3YmyNL

.td-footer-container {
width: 100%;
}

.td-footer-container .td-pb-row {
width: 1021px;
margin: 0 auto;
}

The body container’s width can’t be changed without needing to also change all others elements style making this a difficult job so if you really need this we advise you to ask the help of a developer because this needs custom services. You can find one on site’s like: http://studio.envato.com/

Thanks for the message!

prateekm
Participant
#0

Hi,

I have bought the newsmag theme. My requirement is, I need the header, navbar and the footer to have full screen width and I need to increase the width of the main body container.

How can I do this in css without breaking the other module blocks and responsiveness..

Pls help.

Emil G
tagDiv Staff

Hi,

Add the following css in Theme Panel -> Custom CSS:

.widget_tag_cloud .block-title{
display:none;
}

Thank you!

  • This reply was modified 11 years by Emil G.
Lucian
tagDiv Staff

Hi,

Unfortunately there is no option to change it from theme’s panel but it can be do using custom css, like this: http://screencast.com/t/j5CCAcIfGi

Try the css code from below in theme panel > custom css section and change the color values as you want theme.

.sf-menu > .current-menu-item > a,
.sf-menu > .current-menu-ancestor > a,
.sf-menu > .current-category-ancestor > a,
.sf-menu > li > a:hover,
.sf-menu > .sfHover > a {
background-color: #28ff26;
color: #ec36d6;
}

.sf-menu ul .td-menu-item > a:hover,
.sf-menu ul .sfHover > a,
.sf-menu ul .current-menu-ancestor > a,
.sf-menu ul .current-category-ancestor > a,
.sf-menu ul .current-menu-item > a {
color: #ff1c1f;
background: #4DEC54;
}

Thanks

Alin [tagDiv]
tagDiv Staff

Hi,

You can add the custom css in Theme Panel > Custom Csshttp://screencast.com/t/lvB0ult6 even if you use the child theme.

Thanks!

Viewing 25 results - 27,176 through 27,200 (of 33,436 total)