Tag Info

New answers tagged

0

For the login part, this works for me ... Paste the following line in your wp-config.php if ($_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') $_SERVER['HTTPS']='on'; but make sure that you do it before the following line require_once(ABSPATH . 'wp-settings.php'); By doing so you can get your admin panel back ... See details here


0

You have lots of options to achieve this. First of all, the easy way: Qtranslate-X adds a language class to your body tag. So if you want to only have minor tweaks, you can use this in your style.css: .de #page { background:#000; } .en #page { background:#FFF; } If you need big changes (like, you need different css-files per language), you can ...


0

Currently you have: #fscf_form3 div { margin-bottom: 6px; } If you increase it let's say to 11 you can see that the box goes to the right and properly aligns. Basically using the proper selectors you need to increase either the margin-top of the div or the margin-bottom of the div above it.


0

Just add the full path: background-image:url('http://www.example.com/wp-content/themes/sage/assets/images/el_tracks.jpg'); or background-image:url('/wp-content/themes/sage/dist/images/el_tracks.jpg');


0

Without the HTML code is difficult but i can suggest you to study the new css3 selector, in that case the :first-child https://developer.mozilla.org/en-US/docs/Web/CSS/%3Afirst-child You get a code like this .stats-top .stats-number:first-child{ visibility: hidden; }


0

You can do that with CSS pseudo nth-child classes. Here is an example to make first two strong black. .beer-description strong:nth-child(1), .beer-description strong:nth-child(2) { color: #404040; } You can modify CSS in this as you wish.


0

How about having the location of the CSS file set as an option for the plugin in the admin area? The default setting would be your default stylesheet. The option would allow this to be changed to another specific stylesheet by the user, or removed entirely. If this option exists, your plugin enqueues the stylesheet. This allows the user to: replace ...


2

Did you try .post-156 h1{ color: #666666 !important; } If one of your wrapper elements, like <article> is unsing post_class() the post ID becomes a class of this wrapper like .post-156. So you can say all h1 which are contained in a wrapper with the class .post-156 Another possibility, if your <body>-Tag is using body_class(): ...


1

First of all, never use query_posts, use WP_Query to create additional queries. You can target specific post positions in the loop by using the built in current_post var of the query object. Here's an example using the post_class function: <?php $my_posts = new WP_Query( array( 'posts_per_page' => 3 ) ); if( $my_posts->have_posts() ): while( ...


0

The short answer is yes: You can use multiple CSS files in a WordPress theme. The main style.css file is used for holding the theme's information. You can leave the rest of it blank after that and write your own custom CSS files and include them inside the like you normally would. As for the HTML, that will be working fairly different from a normal HTML ...


0

I finally got it to work after a long time of trying to figure this out! Credit to Samuel Elh for helping me, http://sam.elegance-style.com/ This is useful if anyone wants to allow users to make small style changes to a theme. Rather than create many child themes, if you just need some stylesheet overrules to make changes to a theme, this is ideal: /* ...


-1

I had the same issue and I fixed by installing TinyMCE Advanced. After you install this plugin, you just go to the plugin settings and enable the option to stop removing tags and others.


0

This kind of tiles set-up, the special feature being the filling of the gaps, can be achieved by making use of the JQuery/JS library Masonry. Which fortunately comes bundled with WordPress core for quite some time now. The first step to make use of it is initializing/enqueueing the script: add_action( 'wp_enqueue_scripts', 'wpse195089_init_masonry' ); ...


0

To load the css/js on just one page, please see my earlier answer, and use a WordPress Conditional Tag, just as I showed you in the code example, except replace "Home" in the example with the conditional tag for the page you want this code on. You can find the conditional tag for any specific page by looking it up as indicated in the CODEX link in my ...


0

You want to add CSS OR SCRIPT in wordpress theme .. so. wordpress provide a functions.php in copy and past YOUR CSS LINK OR JS SCRIPT LINK. /** * Enqueue scripts and styles. */ function function_name() { // ADD STYLE wp_enqueue_style( 'CSS-ID', get_template_directory_uri() .'/css/style.css','', '3.3.1' ); // ADD SCRIPT ...


0

Hay In wordpress theme you can add option panel you can not registre script or wp_enqueue_scripts you can add /*-----------------------------------------------------------* /* THEME OPTION ADMIN PRINT SCRIPT EXAMPLE /*-----------------------------------------------------------*/ add_action( 'admin_menu', 'ease_print_script' ); function ...


0

Toodarday, For the code you want to put in your <head> section, you should do this in the header.php file. To do this, go to your WordPress dashboard, hover your cursor over APPEARANCE in the left-side menu bar, and click on EDITOR. When the editor screen appears, in the right column, you should see the listing "Header" with (header.php) below it. ...


0

This is likely a tweak the theme author made to make the images in the theme responsive or adaptive. You may want to look at adding "min-height" to your CSS and this should address your problem. https://css-tricks.com/almanac/properties/m/min-height/ Also another thing to note if you using "100%" anything the actual dimension is governed by the parent ...


2

Have a look at post_class(). Check if the theme using it (every good theme should). If so then you can use post_class filter to add appropriate classes to the container. Here is an example how you can use that filter add_filter('post_class', function($classes){ if(!is_singular('song')) return $classes; $additional_classes = ...


0

@Vee's method will work, but if you want to keep it hidden from display use this method : .search-form .screen-reader-text { overflow: hidden; clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; } It looks like you have a jetpack custom css plugin installed so just add this there, then you don't have to ...


1

Context: accessibility guidance says forms should have labels. The theme designer obviously decided they didn't want the label there but used that CSS trick to move it without (completely) disobeying the guidance. However, that code only hides the search form label off the left of a page in English (or other Left to Right language). Since Hebrew is Right ...


0

It is due to css: Check this(Line # 314 style.css): .search-form .screen-reader-text { left: -9999px; overflow: hidden; position: absolute; } Remove the left margin then it works fine. It is on sidebar search form. Sorry for English. Thanks


1

Without being rude, it will probably cost more to fix what you break instead of asking them in the first place! - however, you can't learn until you break!. If I were you and you are interested in trying to play around with CSS/HTML - then you could always install Wordpress locally on your Mac/PC, there are plenty of guides around & Videos on youtube. ...


0

So as the first option was loading wired i have come to a better solution. what we will do in this case is to create a new menu item, put it in first position, give a custom class, needed to add cutom css style for that item. For this we will: create a function to add new menu item create a function to load custom stylesheet to admin panel and create the ...


0

I afraid that added by some custom function or JavaScript because WordPress never add that tag by default. So use CSS to hide that element if you don't find that script


0

at your theme functions add this line: remove_filter('the_content', 'wpautop');


0

Try this: <div class="my-metabox"> <!-- This is your metabox HTML --> <-- Add this button somewhere: --> <button id="my-submit" class="button button-primary button-large">Submit</button> </div> Add this JavaScript snippet however you want only to this screen (either by checking the post type and enqueue ...


0

So your main Container the part with the content area and sidebar goes to a max width of 1024px. if you increase it then the sidebars will stay the same width and the extra width goes to your content area. Now how do you do this: in you style.css on line 470 this part is defined and you can edit it there. but remember this could break your site if you go ...


-1

You could add to your functions.php (in child theme) a reference to just that one page (is_page('law-practices')) and enqueue just for that one page: add_action( 'wp_enqueue_scripts', 'law_practice_enqueue_style' ); function law_practice_enqueue_style(){ if (is_page('law-practices')){ wp_register_style( 'law-styles', get_template_directory_uri() . ...


0

Add the CSS to your child themes style.css file or load it using wp_enqueue_scripts add_action( 'wp_enqueue_scripts', 'wpsites_load_custom_styles' ); function wpsites_load_custom_styles() { wp_register_style( 'custom-css', get_stylesheet_directory_uri() . '/your-style.css', false, '1.0.0' ); wp_enqueue_style( 'custom-css' ); } Source


-2

Please try this instead. Replace your css by : <link rel="stylesheet" type="text/css" href="<?php echo get_template_directory_uri(); ?>/assets/stylesheets/styles.css" /> in the head section


1

This should be do with the following reason css loaded partially. conflict Js or missing. some function not works not server which fire the fatal error if this exists then you need to change on you wp-config.php file which is located at server: change this code : define('WP_DEBUG', false); to define('WP_DEBUG', true); which show you actual error.


1

Basically you need to check if the font were made White by editing the CSS or using Customizer, and accordingly restoring the CSS or the Entire theme is suggested. Also try changing the theme to a default one and then back to this one.


2

Per this answer, the key to getting the styles to appear in the dropdown is to unset($settings['preview_styles']); add_filter( 'tiny_mce_before_init', 'fb_mce_before_init' ); function fb_mce_before_init( $settings ) { // customize as desired // unset the preview styles unset($settings['preview_styles']);` return $settings; }


-1

put this code at the end of functions.php add_action('customize_register', 'customizer'); function defer_parsing_of_js ( $url ) { if ( FALSE === strpos( $url, '.js' ) ) return $url; if ( strpos( $url, 'jquery.js' ) ) return $url; return "$url' defer "; } add_filter( 'clean_url', 'defer_parsing_of_js', 11, 1 );



Top 50 recent answers are included