New answers tagged

0

OK. Because of all my comments to BillK's suggestions, I just wanted to provide clarification that I WAS able to fix this issue. Instead of adding css in the Custom CSS field in Highend Options > General Settings (as suggested by the theme developer), I quit dinking around within WordPress and logged directly into the server to edit the css there. Here is ...


3

This sounded very much like a caching problem. Specifically Browser Caching. Sometimes your Server may fail to fully serve an asset. Sometimes your Browser may incorrectly store an asset. This could have been a corrupt JavaScript file, or a corrupt CSS file. Either way, it was causing aesthetic problems on the Administration Screen of WordPress Knowing ...


0

It's pretty difficult to know what your CSS properties are doing without seeing the related HTML. I would use the max-width property instead of width img{ max-width: 100%; }. UPDATE: I just noticed you provided a link. The height property is a problem: .custom-hb-box img { display: block; height: 100%; opacity: 1; transition: opacity 0.2s ...


0

You need to change the enqueueing part to this: function skinsave_2016_slider() { wp_enqueue_script( 'skinsave_2016-slider-js', get_bloginfo( 'template_url' ) . '/js/slider-js.js', array(), null, true); } add_action('wp_enqueue_scripts', 'skinsave_2016_slider'); The problem was your function content_url() returns http://yourdomain.com/wp-content, and ...


2

Your code works fine just the way you have it - I tried it. Maybe you have another plugin that unhooks existing login_enqueue_scripts hooks disabling yours? Otherwise it works provided: The code is in a plugin; style-login.css file is in the same directory as the plugin; Some WP CSS uses !important; such as body{ background }. So, you'll need !important ...


0

So I have done figured out a solution using php Ill explain below: So I created a var and called it white. It has a empty string that I used and an if statement then I used the WordPress function is_front_page <?php $white = ""; if( !is_front_page() ) { $white = 'scrolled'; } ?> Then in my Navbar class I added this: <?php ...


0

Most WordPress themes take advantage of a function called body_class() which outputs specific classes to the body tag. Implementation looks something like this: <body <?php body_class(); ?>> This will put a unique class on the homepage of your website that won't be on any of the other pages so you could target that specifically in jQuery or ...


-2

So that was a wonderful idea! I decided to inspect the HTML elements and removed the pieces of code that had a matching pair. I realized they all had a matching pair; however, for some reason, the second column's container was enveloping the third column's container to make it a sub-container if that makes sense? Here's the code snippet I managed to parse ...


2

As far as I can tell, the most right column is being nested within the middle reviews column. I imagine that somewhere in the code (template, sidebar, or widget) there is a conditional statement causing your middle column to not get closed off before the right column starts. To illustrate what is happening, this is how it currently gets rendered: <div ...


0

I could be wrong but imho is it better to use the 'full' $handle (string) (Required) Name of the script in your case: script-pricing instead of pricing. /** * Register/Enqueue my script into footer for better page load * Read more: {@link http://www.tutorialrepublic.com/codelab.php?topic=faq&file=jquery-show-hide-div-using-radio-button} * @version ...


0

You don't actually have a reference to Google Fonts Quicksand stylesheet on your site. I would suppose that you have Quicksand installed on your PC and as a result it can be seen but you wouldn't have it on your mobile and so it wouldn't display. Either add the following to your site via wp_enqueue_style: https://fonts.googleapis.com/css?family=Quicksand ...


0

Most likely, the cause of your problem is that jQuery is in compatibility mode. This means that you can't use the '$' shortcode. To get your Javascript code to work, replace all '$' with 'jQuery' Or, wrap your code in an anonymous function, like this: jQuery(document).ready(function( $ ) { // Put your jQuery code here. }); See: ...


0

I'm guessing you weren't using the compiled version. That's not normal css in the example you provided, it's scss. SCSS is a type of file for SASS, a program that assembles CSS. SASS adds lots of additional functionality to CSS ( variables, nesting, ect ) which makes writing CSS faster. If you're new to all this, you'll want to learn css basics before diving ...


1

These are CSS classes for styling... comment-author-admin bypostauthor For (your) example: .commentlist .byuser {background-color: black;} .commentlist li ul.children li.byuser {border-top: 10px solid #e18728;}


0

Maybe if you take a look at class="carousel-inner skrollable skrollable-between" and use some js to do it as position:absolute and top:0px


0

It looks like your .edgtf-page-header class is currently styled as: { margin-top: 200px; /* padding-top: 290px; */ background-image: url('http://185.105.4.132/~orangeye/wp-content/uploads/2016/01/home-logo.png'); background-repeat: no-repeat; background-position: center top; position: relative; display: block; } The margin-top ...


0

Add the following to your functions.php function replace_admin_open_sans() { wp_deregister_style( 'open-sans' ); wp_register_style( 'open-sans', false ); wp_enqueue_style( 'open-sans', '' ); } add_action( 'init', replace_admin_open_sans');


0

Inside your CSS put the font-family inside your body { } tag and then it should work. body { font-family: 'Droid Sans', serif; } Also I recommend setting a fallback font for the reason listed in W3C Schools CSS Web Safe Fonts Best of luck :)


0

I believe the easiest way to do that will be with javascript. Something that will navigate at each comment list and show only last button. Something like: jQuery(document).ready( function($){ //Hide all buttons $('.comments li .reply-button').hide(0); //Navigate through all comments $('.comments li').each( function() { //Lets ...


0

I took a look at your site, and are you sure you dont want to make the .wrapper clickable? boxed-layout is your whole site, so if you made that clickable the whole site would be a link. However, if I look at your question, the answer would be to use jQuery. <script> $(".body.boxed-layout").click(function(){ window.location = ...


0

I asked a more general (non-WordPress specific) question about polyfilling on StackOverflow (I strongly recommend reading through the ensuing comments for context) which has lead me to the following answer: add_action( 'login_enqueue_scripts', 'wpse_215432_oldbrowsersupport'); function wpse_215432_oldbrowsersupport() { wp_register_script( ...


0

You can use uniqueid() from php. It'll generate unique id for your css selector. Or if you use any WordPress core pages like : archive, tags, category pages, please refer following article : 9 Way to Set Dynamic Body Ids via PHP and WordPress


0

Found the problem, it was caused by a plugin called "Supercacher", which must have been caching my css files. I purged the cache and it works now.


0

Have you uninstalled any WP mobile plugins like WPtouch? Also, your header image isn't fully responsive.


0

There's not a universal standard for this. The precedents that the core Themes are setting are incidental to rebuilding and innovating. They are not by design. They define font families for the Editor in the back end to establish a consistent feeling for content. Source: https://github.com/WordPress/twentysixteen/blob/master/css/editor-style.css Within ...


0

It is basically because TwentySixteen uses two different fonts Merriweather as a general site font and body text and Montserrat for specific parts like logo, title, etc... Merriweather for fallback general and body text: /** * 3.0 - Typography */ body, button, input, select, textarea { color: #1a1a1a; font-family: Merriweather, Georgia, ...


0

$category = get_the_category(); if ( $category[0]->cat_name == "featured" ) { // if first category in array is "featured", get next category in line $name = $category[1]->cat_name; $cat_id = get_cat_ID( $name ); $link = get_category_link( $cat_id ); echo '<a href="'. esc_url( $link ) .'"">'. $name .'</a>'; } ...


0

I know this is old but I've been thinking about it lately. I have the same issue, if I find myself very extensively modifying the parent stylesheet, it can get to the point where I am loading an enormous number of styles, simply to override them in the child theme. When I am dealing with this kind of project, it is usually the case that I'm doing much more ...


0

If I understand the question correctly, I actually had issues with this fairly recently. Ultimately, I learned that by default, the_date() will only display the date for the first post on a given day. If you are using the_date you need to replace it with something else. I usually just use echo get_the_date().



Top 50 recent answers are included