How to add background image to Wordpress theme's Accelerate - css

Hi guys i've been working for this for days and searching the net for help but unluckily I don't find one. Here's my problem, I know that wordpress has a built-in background image when you click the appearance. I also tried editing in the CSS but when I put the code
background-image: url(image/3.jpg) in the body but when I see it it didn't appear. I think that the theme Accelerate has a code that has a fixed white image, How is this?

Their may be background image or no back ground image in wordpress according to the theme you are currently working with. Anyway you can add background image inside the body of a page in wordpress by the following ways :
Select css class from "main.css" located wp-contents/themes/your-current-theme/css/main.css, inside css edit "body" as
body{
/*...propeties..*/
background-image:url(back-img-url);
}
if it overridden by default images of your theme can use this instead of above
body{
/*...propeties..*/
background-image:url(back-img-url) !important;
}
In case you are using a custom template inside wordpress find the body class from the css you are using and change this as above.or using image inside page with img tag then make direct changes for this.

I resolved this by clicking Theme Options -> Design and choose the "Boxed Layout" instead of Wide Layout

Related

Color change, primary hover

I'm a beginner and a great desire to learn. But despite my best efforts there are things that I cannot solve.
Through the element inspector I understood that this color is the primary hover, set by default with this code: #eeac00
I want to change this color with a different code, that is: #000000
How can I do it elementor also provides me with a CSS editing section.
In case there was a need.
enter image description here
enter image description here
Try this CSS:
.add_to_cart_button:hover{background-color:#000000!important;}
If you want to change this color for all your website you can do it in multiple ways :
Make a child theme of your Wordpress theme. Then change the color as you want. (Editor -> Appareance)
:root{
--primary_hover: #000000;
}
You can try to add this code into your Custom CSS from Elementor. Maybe, will it work.
Maybe not the best way if you do update of your theme but if not you can directly change it in your theme settings.

How to change button background and text color under every post

How to change the background and text color of every read more button on my website?
The site has "swift" theme.
There should be a option in Wordpress admin panel to edit website's appearance, including font size, color and stuff like that. I have not worked on the Swift theme but from the little experience I have, theme's options have such features to modify color/size/font without having to write CSS for it.
OR you can add custom CSS to your website, but for that you will need to write CSS which may overlap with other settings on the website if not done carefully.
The 'Read More' element has 'moretext' class, so you need to work on CSS to customize it. Something like this:
.moretext { background: #ffffff; color: 000000; }
Here's the documentation https://codex.wordpress.org/Customizing_the_Read_More

Wordpress styling extra margin

I'm working on a Wordpress site and I'm quite new to this framework. There's some CSS on my page that's causing each "row of content" to have a 35px margin between it. This appears to be in a css class called wpb_row in a js_composer.css file. I'm not sure if this is some standard CSS class for Wordpress or if there's a global "have margin between each layer of content" setting.
Unfortunately I don't have 10 rep so I can't post an image of the page that's causing the issue but I can link to an image of where the issue is http://i.imgur.com/vEyznRn.png?1 and the url for the site is http://am12.siteground.biz/~youbambu/ecorecycling/
What's the best way to override a CSS class within Wordpress from a standard point of view? I've tried adding custom css to override this and remove the margin-bottom: 35px; in Appearence->Editor->Stylesheet.
Is it possible to either override this CSS in one global area? I'm using a theme called Picasso in wordpress if that's any help, but I don't see how to override this CSS.
To overrride the css use !important. So adding the following to your stylesheet should remove the margin bottom:
.vc_row.wpb_row.vc_row-fluid {
margin-bottom: 0 !important;
}
Is it possible to either override this CSS in one global area? I'm using a theme called >>Picasso in wordpress if that's any help, but I don't see how to override this CSS.
I would be careful editing/modifying there because I suspect you will lose these changes/modifications on theme updates (which Picasso auto updates).
The theme has a designated place located at Theme Options > Tools > Custom CSS. The adjustments you add here are loaded on every page, just like the stylesheet in editor. Furthermore, these changes are not cleared upon update.
Just my two cents, hope it helps.
You can easily achieve this goal. This is not a WordPress standard or something.
you can edit js_composer.css and change what you want. OR
you can override this css rule adding a new role after js_composer.css loads. Something like:
<style>
.wpb_row { margin-bottom: 0px!important }
</style>

Editing CSS of WordPress theme that has been embedded

Hi I am building this site at http://amy-and-duncan-are-getting-married.co.uk/, using the Aggregate theme on WordPress.
The problem I am having is the background on certain pages does not fill the whole screen and I am left with a blank white area, when in Chrome if I go right click and inspect element I can get the CSS for the image and add the code I want,
'background-size : cover;'
I have tried researching this but I have read that WordPress automatically creates this CSS, surely there must be somewhere I can go and edit this code.
Can someone kindly give me a hint or clue cause I feel I am tearing my hair out.
Thanks
Craig
Log in to the back-end of your WP site
websiteurl/wp-admin
Then on the left side bar, go to:
> Appearance
> Editor
Then look for the stylesheets on the right, under:
> Styles
Then CTRL + F the code you need to change, for instance:
#content-area
then add to this selector:
background-size: cover;
Then click Update File.
Hope this helps.
Use inline style like
<div id="content-area" style="background-size: cover;">
Or add an external style sheet in your wordpress theme and define content-area id like
#content-area{
background-size:cover !important;
}
I think this will work for you

How to Change a Plugin's CSS

I have installed a plugin in wordpress that creates image thumbnails and displays links for all the subpages of a particular page. It is being displayed on the front page of this website.
The plugin is called AutoNav. More info here.
The plugin FAQ says the following about what classes are created to create the table:
table elements: subpages-table
tr elements: subpages-row
td elements: subpages-cell
p elements inside each td: subpages-text
Thumbnail images: subpages-image
Excerpt text: subpages-excerpt
My question is how I should go about formatting my CSS to change these settings. Should I just create classes with those names?
Lastly, the links that the plugin generates work on initial page load, but once the page completely loads, the links seem to stop working and just become text. Not sure what the issue is.
My question is how I should go about formatting my CSS to change these
settings. Should I just create classes with those names?
Yes. These are the classes the plugin generates and applies to the elements in the html.
For example if you wanted to add a border to the thumbnail images you would apply the styles to .subpage-image class.
.subpage-image {
border:1px solid #000;
}
Lastly, the links that the plugin generates work on initial page load,
but once the page completely loads, the links seem to stop working and
just become text. Not sure what the issue is.
This is being caused by your slider. Once it is fully loaded the div #slider overlays your content making the links unclickable.
To fix this give #slider height:280px;

Resources