Transparent background in post content
-
I have tried every entry I have googled, to try to
make transparent background, so text is floating on image.I have patched 18 places directly in CSS, “background: transparent;”
-and it just does not work! (Dont suggest child CSS, it should work
in the original too).There are so many people asking this question, and no fixes work.
It is impossible to understand why wordpress can not fix this!In Twenty Fifteen it is also hard to see if any change in CSS
is reflected in the site..PLEASE!!!
-
the text is now in top and bottom of child css.
I do not expect this to work, I have not seen anyone who has been able to make it work..
I do not understand, how it can be so hellishly difficult to just turn
off the background? Must be thousands who wish this and just give
up..The side menu seems to manage it…
how can I check that the child theme is working or has any say at all?
Your Child Theme is not active on your site, are you sure you activated it in Appearance > Themes of the dashboard?
Broken Themes
The following themes are installed but incomplete. Themes must have a stylesheet and a template.
somewhere else in wordpress pages it says that only 2 files are necessary in the child theme.. is it not correct?
WAIT.. I fix this now…
I think you also need a “functions.php” file. You can keep the functions.php file empty by just adding this to its code:
<?php ?>If the issue persists, can you copy & paste (here) the first 20 lines of your Child Theme style.css file?
Theme will not install, “broken theme”
/*
Theme Name: Twenty Fifteen Child
Theme URI: https://wordpress.org/themes/twentyfifteen
Author: the WordPress team
Author URI: https://wordpress.org/
Description: Our 2015 default theme is clean, blog-focused, and designed for clarity. Twenty Fifteen’s simple, straightforward typography is readable on a wide variety of screen sizes, and suitable for multiple languages. We designed it using a mobile-first approach, meaning your content takes center-stage, regardless of whether your visitors arrive by smartphone, tablet, laptop, or desktop computer.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: black, blue, gray, pink, purple, white, yellow, dark, light, two-columns, left-sidebar, fixed-layout, responsive-layout, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready
Text Domain: twentyfifteen-childThis theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you’ve learned with others.
*/Functions.php
<?php
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘twentyfifteen’, get_template_directory_uri() . ‘/style.css’ );}
/**
* Twenty Fifteen functions and definitions
*
* Set up the theme and provides some helper functions, which are used in the
* theme as custom template tags. Others are attached to action and filterOkay instead of this bit of your Child Theme style.css file:
/* Theme Name: Twenty Fifteen Child Theme URI: https://wordpress.org/themes/twentyfifteen Author: the WordPress team Author URI: https://wordpress.org/ Description: Our 2015 default theme is clean, blog-focused, and designed for clarity. Twenty Fifteen's simple, straightforward typography is readable on a wide variety of screen sizes, and suitable for multiple languages. We designed it using a mobile-first approach, meaning your content takes center-stage, regardless of whether your visitors arrive by smartphone, tablet, laptop, or desktop computer. Version: 1.0 License: GNU General Public License v2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Tags: black, blue, gray, pink, purple, white, yellow, dark, light, two-columns, left-sidebar, fixed-layout, responsive-layout, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready Text Domain: twentyfifteen-child This theme, like WordPress, is licensed under the GPL. Use it to make something cool, have fun, and share what you've learned with others. */Do this:
/* Theme Name: Twenty Fifteen Child Template: twentyfifteen */This should work, add it to the CSS plugin or Child theme CSS.
I don’t like using !important but I think the theme customizer may override the class in a child theme in this case since it’s added after the other stylesheets in the header.
Since the dark color scheme has a color I would assume the other color schemes have #FFFFFF as the background color..hentry { background-color: transparent !important; }Ok the child theme is installed.
A preview gives me a totally black page.http://www.3dsolex.com
If I activate the childe theme it goes blank.
Here are the top of my files:
/*
Theme Name: Twenty Fifteen Child
Template: twentyfifteen
*/
/**
* Table of Contents
*and
<?php
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
function theme_enqueue_styles() {
wp_enqueue_style( ‘twentyfifteen’, get_template_directory_uri() . ‘/style.css’ );}
What about the entire code of your functions.php file?
Take this out:
/** * Table of Contents *And you need to ACTIVATE the child theme.
If I activate it, the entire site goes white..
<?php add_action( 'wp_enqueue_scripts', 'theme_enqueue_styles' ); function theme_enqueue_styles() { wp_enqueue_style( 'twentyfifteen', get_template_directory_uri() . '/style.css' ); } /** * Twenty Fifteen functions and definitions * * Set up the theme and provides some helper functions, which are used in[The rest of the code has been moderated]
The topic ‘Transparent background in post content’ is closed to new replies.
