WordPress Twenty Fourteen Theme Sidebar

The sidebar is created in two different places: The black strip is created from .site:before, check line 3910 of style.css #secondary actually displays the sidebar information, check line 3923 of style.css .featured-content, .site-content, .site-main .widecolumn provide left padding to the content area should you wish to dispose of that too.

How to enqueue a random css style?

This should work! function enqueue_random_style() { wp_enqueue_style( ‘style-name’, get_stylesheet_directory_uri() . ‘/inc/rcolor/’ . mt_rand(1, 9)); } add_action( ‘wp_enqueue_scripts’, ‘enqueue_random_style’ );

Inconsistent `body_class()` function

The comment from @milo prompted me to take a closer look, and I realised I was chasing a false positive. The About page and Contact page were actually displaying the correct behaviour; it was Home and Services that were wrong. It seems at some point those two pages did have custom page templates, which were … Read more

Why does my dissappear?

WordPress does remove style tags. While it allows HTML to some degree in post content, it’s not really meant for full range of it. It’s a content, not markup data. You could use tiny_mce_before_init filter to adjust extended_valid_elements for TinyMCE instance. See this answer on SO for some examples.

How to decrease picture size

you will need to add this css to a child theme or install a custom css plugin .blackwell_top_image { height:400px; //change this to whatever height you want the image to be overflow:hidden; } It has to be done this way as the image width is set to 100% so setting a height on the image … Read more

Font embedding in wordpress

I never used Hebrew fonts in WordPress, so unless it’s a special case, it should be the usual @font-face stuff. Not sure what your problem might be as you didn’t post any code. The sizes may change based on how the font was designed. Some fonts are just a bit larger or smaller depending on … Read more

Different ways to load child theme css

There’s nothing wrong with css rules ending up in your inspector twice. In many cases you want the first version, loading both parent and child styles. After all, in that case your child style sheet only needs to have the styles you want different from the parent. The browser will correctly apply the child rule … Read more

Unable to load CSS file (HTTP 403)

The entire wp-content folder seems to be in possession of www-data and I have at some time applied chmod -R 777 to the whole folder (No need to tell me that this is not secure). Seems to be — means you will need to check if this is really the case. It may be not … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)