Beruflich Dokumente
Kultur Dokumente
Theme
About Calcatraz
Calcatraz is a small software
development
This post contains affiliate links to products which we hope are of value to you, and on which
we receive a commission.
working
to
company
build
useful
software.
This post is a collection of tips and tricks for getting the most out of
Our
Divi theme and need some help adjusting the appearance to suit
your needs, let me know in them comments and Ill do my best to
help you out.
products
include
an
Contents [hide]
and tourist.
Recent Posts
Tricks
Calcatraz Applications
Calcatraz Calculator
Calcatraz Typist
Other Stuff
Divi
WordPress
Theme is a
slick, modern
theme
from
Elegant
Themes.
has
It
recently
Privacy Policy
When you add captioned images into your posts, they are given a
grey background and border. If you want to remove this, add the
following to the end of the themes style.css file:
Note: set the width to suit your needs and keep a 10px difference
between widths in the two CSS rules.
#recent-posts-2 { display:none; }
.et-fixed-header { display:none; }
With this, when you scroll down the header will disappear instead of
shrinking.
#main-header { display:none; }
#page-container { padding-top:0px !important }
It hides the header, then moves the rest of the page up into the
space the header occupied.
.post-57
section */
.et_pb_column:nth-of-type(2) /* apply to the second column of the
row */
.et_pb_text:nth-of-type(2)
in the column */
{
font-size: 14pt;
}
$image_output = sprintf(
'<a href="%1$s" title="%2$s" rel="nofollow">
<img src="%3$s" alt="%2$s" /><span class="et_overlay">
</span>
</a>',
esc_attr( $full_src ),
esc_attr( $attachment->post_title ),
esc_attr( $thumb_src )
);
To:
$image_output = sprintf(
'<a href="%1$s" title="%2$s" rel="nofollow">
<img src="%3$s" alt="%2$s" /><span class="et_overlay">
</span>
</a>',
esc_attr( $full_src ),
esc_attr( $attachment->post_excerpt ),
esc_attr( $thumb_src )
);
// load jQuery
wp_enqueue_script('jquery');
// hook the widget area into the footer, then move into place in the
header
function myprefix_add_header_img() { ?>
<div style="display:none">
<img id="myprefix-page-start-img" src="http://www.mysite.com
/my-image-url.jpg"/>
</div>
<script>jQuery("#myprefix-page-startimg").prependTo(jQuery("body"));</script>
<?php
}
add_action('wp_footer', 'myprefix_add_header_img');
// CSS to display the image and header correctly
function myprefix_css() { ?>
<style>
/* Change header to float correctly wherever it is in the page */
@media only screen and ( min-width:981px ) {
#main-header { position:relative !important; top:0px !important; }
#main-header.et-fixed-header { position:fixed !important;
margin-bottom:0px; top:0px !important; }
body.admin-bar #main-header.et-fixed-header { top:32px
!important; }
#page-container { overflow:hidden; }
}
/* Style the image for full screen layouts */
@media only screen and ( min-width:981px ) {
#myprefix-page-start-img { margin-bottom:-80px; width:100%;}
}
/* Style the image for box layout */
@media only screen and (min-width: 1200px) {
.et_boxed_layout #myprefix-page-start-img {
width:1200px;
-moz-box-shadow: 0 0 10px 0 rgba(0,0,0,0.2);
-webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
display:block !important;
margin-left:auto;
margin-right:auto;
}
}
/* Hide the image on smaller screens */
@media only screen and ( max-width:980px ) {
#myprefix-page-start-img { display:none; }
}
</style>
<?php
}
add_action('wp_head', 'myprefix_css');
The only thing you should need to change is the image url in the
myprefix_add_header_img function.
Note that this will change the height of the Divi slider on all pages
with a slider just change the two occurrences of 425px with your
desired height. The height change is only applied on desktops; on
mobiles it defaults to the standard Divi height.
If you want to affect just one slider, you can add a CSS class in the
slider module options, and then replace the 5 occurrences of
et_pb_slider in the above with the name you choose for your CSS
class.
Ive used top: 25% to display the slide titles 1/4 of the way down
the slide (so that all slide titles appear in the same place). Increase
this if you want the slide titles and descriptions to be moved lower
down the slide.
}
@media only screen and (min-width: 981px) { /* medium-size
displays */
#sidebar {
padding:70px 30px 200px 30px;
margin:-70px -30px 0 -30px;
}
}
@media only screen and (max-width: 981px) { /* mobiles, etc */
#sidebar {
padding:30px
}
}
.container::before { display:none; }
.et_pb_widget_area_right { border-left:0; }
#et-top-navigation { text-align:right; }
#et-top-navigation > * { text-align:left; }
#top-menu-nav, #et_top_search { float:none !important;
display:inline-block !important}
#et_top_search { vertical-align: top !important; margintop:3px }
}
#main-header::after {
content: "";
background-image: url('myimage.png');
background-size:cover;
opacity: 0.5;
top: 0;
left: 0;
bottom: 0;
right: 0;
position: absolute;
z-index: -1;
}
Note that the default font-size is 100% so anything bigger than this
will increase the font size and anything smaller will decrease it.
Now we need to move the post title and content, and the sidebar,
below the image. We can do this by setting a top-margin on the
content-area element, which is equal to the height of the featured
image. It is easiest to do it using jQuery, which lets us easily adjust
the margin as the image height changes between posts and on
browser resizes. Heres the jQuery code, which can be added into
footer.php:
<script>
jQuery(function($){
var featured = $('body.single article.has-post-thumbnail img:nthof-type(1)');
var contentarea = $('#content-area');
if (featured.length) {
adjust_margin();
$(window).resize(function(){ adjust_margin(); });
}
function adjust_margin() {
contentarea.css('margin-top', featured.height());
}
});
</script>
To make the change to just a single slide (e.g. the first one) on a
particular slider, give the slider a CSS class, such as myslider and
use:
.et_pb_gallery_image img {
min-width:0 !important; min-height:0 !important;
position: relative;
left: 50%; top: 50%;
transform: translateY(-50%) translateX(-50%);
}
This removes the minimum height and width setting which was
causing the stretching, and centers the image in the thumbnail area.
#main-header{
-webkit-box-shadow:none !important;
-moz-box-shadow:none !important;
box-shadow:none !important;
}
.single h1 {
font-family: Courier;
font-size: 30pt;
color: green;
border-bottom: 1px solid #ddd;
}
This example change the post title font to Courier, makes the font
size bigger, makes the title green, and adds a thin grey line under it
(by adding a bottom border).
#sidebar .et_pb_widget {
border-bottom: 1px solid #ddd;
padding-bottom: 20px;
margin-bottom: 20px;
}
#sidebar .et_pb_widget:last-of-type {
border-bottom:0;
}
The first part adds a bottom border to each widget (the same color
as the vertical sidebar divider), and positions it mid-way between
successive widgets. The second part removes the bottom border on
the final widget.
Let's Discuss...
Mario
January 5, 2016 at 10:20 am
Dan
January 5, 2016 at 7:53 pm
Hi Mario,
Do you mean you want less space between the logo
and the top of the page?
I notice you have this in your style.css file:
/* modifica */
#main-header {
padding: 50px 0 0;
z-index: 1;
}
It is setting a top padding of 50px on the main
header, which is pushing the logo down. The space
should be reduced if you remove padding line, or
override it with the following:
#main-header { padding-top: 0px !important; }
Lisa
January 2, 2016 at 4:48 pm
Dan
January 5, 2016 at 7:58 pm
.widgettitle {
color: red;
font-size: 24px;
}
achieve, etc.
Chris
December 31, 2015 at 9:38 am
Hello,
quick question, is there a way to remove the little phone icon
from the secondary navigation bar (not needed in this case)
but keep the social icons and email?
Thank You
Dan
December 31, 2015 at 7:35 pm
Chris
January 1, 2016 at 1:00 pm
Vincent
June 16, 2015 at 12:51 pm
Hi !
how to change the size of thumbnail on fullwidth portfolio ?
I mean to have 3 column instead of 4 and to change the size
of thumbnail from square to rectangle ?
Thanks
Dan
July 13, 2015 at 5:13 pm
Cliff Farrand
May 12, 2015 at 7:06 am
Hi Dan
On the suggestion that you gave above:
Apply a Style to a Single Text Module
To apply a style to a single text module, we can use a CSS
rule like this:
.post-57 /* apply to page / post with ID 57 */
.et_pb_section:nth-of-type(1) /* apply the the first page builder
section */
.et_pb_row:nth-of-type(1) /* apply to the first row of the section
*/
.et_pb_column:nth-of-type(2) /* apply to the second column of
the row */
.et_pb_text:nth-of-type(2) /* apply to the second text module in
the column */
{
font-size: 14pt;
}
I want to add a rule for the first row on a specific page to
remove the padding so that a masterslider shortcode I am
using in the first text box in the first row single column loses
the padding so that the background video in the Masterslider
butts up to the menu at the moment there is a gap of some
20 or more pixels.
I can add this to the CSS to target the gap successfully
.post-3649
.et_pb_row {
padding: 0px 0 0;
}
but that of course applies to all row padding for all rows in the
page and cannot use since it looks wrong on subsequent
rows.
Your example above is specific to the CSS for the text within
the module I am targeting the first row padding only and not
the contents of the text module.
Any suggestions Dan or anyone?
I am a paying customer of yours by the way your plugin is
awesome!
Cliff
Dan
May 12, 2015 at 3:43 pm
Cliff Farrand
May 12, 2015 at 4:47 pm
Perfect :-)
Cheers Dan!
I also added
.post-3649
.et_pb_section:first-child
Dan
May 12, 2015 at 5:09 pm
Manly Boxes
February 5, 2015 at 8:14 pm
Dan,
You are awesome. I am a semi-newb, css illiterate mostly, but
you have some great stuff here. just saying thanks, youve
already answered all my questions! Totally like to send you a
Manly Box from ManlyBoxes.com as a token of appreciation!
Email me!
Thanks,
Steve
Dan
February 6, 2015 at 8:25 am
Dean at Wildstylez
Dan this is awesome that you take the time to help people.
Really great.
My question may be way beyond the scope of your help, but
Im curious; Do you know a way to Turn On the DIVI Page
Builder for Posts?
Dan
February 6, 2015 at 7:45 am
Filip
January 14, 2015 at 9:36 am
Thank You very much for part Add a Full-Width image Above
the Header! :-)
Cam
January 12, 2015 at 7:27 pm
Whats the best way to keep the fixed header, but make it so it
doesnt shrink down in size when you scroll the page? Id like
to keep the logo and menu the size it is when youre at the top
of the pageeven after scrolling. CSS mod?
Dan
January 17, 2015 at 5:34 pm
Sid
Tracey
December 30, 2014 at 4:35 pm
Dan
December 30, 2014 at 8:26 pm
Pete
December 29, 2014 at 12:03 pm
Hi Dan
Please can you help me? In my Divi theme, I have
successfully made the full width slider a smaller height using
your code. The problem I now have is that the text in the
right-hand part of the slider is now either too far down on the
bottom of the header, or is sometimes non-existent. The CSS
code I have at the moment is as follows using a class called
homeslider:
/* Set the slider height */
.homeslider .et_pb_slider, .et_pb_slider .et_pb_container {
height: 300px;
}
.homeslider .et_pb_slider, .et_pb_slider .et_pb_slide {
max-height: 300px;
}
.homeslider .et_pb_slider .et_pb_slide_description {
position: relative;
top: 0%;
padding-top: 0 !important;
padding-bottom:0 !important;
height:auto !important;
}
Thanks for your help.
Pete
Dan
February 2, 2015 at 3:26 pm
Hey Pete,
Try this.
@media only screen and (min-width:981px) {
/* Set the slider height */
.homeslider, .homeslider .et_pb_container {
height: 300px;
}
.homeslider, .homeslider .et_pb_slide {
max-height: 300px;
}
.homeslider .et_pb_slide_description {
position: relative;
top: 0%;
padding-top: 0 !important;
padding-bottom:0 !important;
height:auto !important;
}
}
Ive changed where the .homeslider references are
placed. Ive also updated the code to the latest
version which fixes a responsiveness issue with
mobiles.
David
December 16, 2014 at 7:13 pm
Hi Dan
Just bought Divi and the Divi Children plugin (to make a child
theme). I know no code but saw your post about placing a full
width image above the header. Just to be clear, I paste the
entire snippet below exactly as is (except with my substituted
image url) in the E Panel>General settings>Custom CSS box?
Or someplace else? I tried this but got no result. Im sure Im
missing something simple
Thanks!
// load jQuery
wp_enqueue_script(jquery);
// hook the widget area into the footer, then move into place in
the header
function myprefix_add_header_img() { ?>
jQuery(#myprefix-page-start-img).prependTo(jQuery(body));
/* Change header to float correctly wherever it is in the page */
@media only screen and ( min-width:981px ) {
#main-header { position:relative !important; top:0px !important;
}
#main-header.et-fixed-header
position:fixed
!important;
#main-header.et-fixed-header
top:32px
!important; }
#page-container { overflow:hidden; }
}
/* Style the image for full screen layouts */
@media only screen and ( min-width:981px ) {
#myprefix-page-start-img { margin-bottom:-80px; width:100%;}
}
/* Style the image for box layout */
@media only screen and (min-width: 1200px) {
.et_boxed_layout #myprefix-page-start-img {
width:1200px;
-moz-box-shadow: 0 0 10px 0 rgba(0,0,0,0.2);
-webkit-box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
display:block !important;
margin-left:auto;
margin-right:auto;
}
}
/* Hide the image on smaller screens */
@media only screen and ( max-width:980px ) {
#myprefix-page-start-img { display:none; }
}
<?php
}
add_action('wp_head', 'myprefix_css');
Dan
Scott Fray
December 2, 2014 at 10:01 pm
Dan
December 19, 2014 at 4:48 pm
James
November 19, 2014 at 7:13 am
Hi Dan,
Im trying to add a full-width image above the header but when
I go open to the Divi functions.php file its saying:
Fatal error: Out of memory (allocated 30932992) (tried to
allocate
262144
bytes)
in
/homepages/24/d538610013
Any ideas?
Also, do I add the image URL and stick all that code in or do i
need to pick elements out?
Cheers, James
Dan
November 19, 2014 at 2:36 pm
Rich
November 18, 2014 at 11:35 am
Dan
January 18, 2015 at 4:37 pm
Luc Nelson
November 16, 2014 at 8:14 pm
Dan,
Thank you for all the work you have put into answering
everyones questions. I am truly impressed. I searched
through the questions and your replies but couldnt find
anything that appeared to be related to my question. I am
trying to figure out how I could adjust the appearance (color,
font, rounded edges) of the Pricing Tables module within the
theme. I am happy to explore but am not even sure where I
would start for something like that.
Any advice you can give would be greatly appreciated. I did
see that on the first page of the module it gives the option of
picking a CSS class or ID. Do I need to create a CSS ID or
Class to adjust those?
Dan
November 17, 2014 at 9:09 pm
Greg
November 15, 2014 at 4:02 pm
Greg
November 15, 2014 at 4:03 pm
Greg
November 15, 2014 at 4:06 pm
Dan
January 17, 2015 at 7:18 pm
be
caching
problem
the
issue
will
the
caches
in
any
John
November 12, 2014 at 4:09 am
adjust everything else. All this did was cut off the bottom of the
slider background. The content still shows full size and now its
not centered. :(
Dan
November 14, 2014 at 3:01 pm
zyl
November 7, 2014 at 1:54 pm
Dan
November 14, 2014 at 3:02 pm
Judy
November 6, 2014 at 10:51 am
Thank you Dan you are very generous with your time and
knowledge :)
James
November 6, 2014 at 8:21 am
Dan, you legend! Wish I had found this site ages ago.
I want to remove the Divi header diving line. I can see you
have posted the code for the sidebar but not the header.
Any help would be really appreciated.
Thank!
Dan
November 8, 2014 at 4:42 am
Judy
November 5, 2014 at 7:58 pm
Dan
November 5, 2014 at 11:07 pm
Elias
November 5, 2014 at 3:22 pm
Elias
November 5, 2014 at 6:09 pm
Dan
November 5, 2014 at 6:12 pm
Patricia
November 5, 2014 at 1:09 pm
Dan
November 5, 2014 at 5:38 pm
Marc
November 4, 2014 at 11:40 am
Hello,
I am trying to erase the sidebar bar between my main content
and the categories/archives/recent post.
I add this .container::before { display:none; } to the Custom
CSS field and its not erasing the bar.
Any suggestions?
Thanks.
Marc
Dan
.et_pb_widget_area_right { border-left:none; }
Marc
November 6, 2014 at 11:02 am
Daniel Zaldumbide
November 3, 2014 at 7:23 pm
Dan
November 3, 2014 at 10:49 pm
Daniel Zaldumbide
November 4, 2014 at 5:49 am
Matthew
Dan
November 3, 2014 at 10:10 pm
Avin
November 2, 2014 at 12:36 pm
Dan
November 4, 2014 at 12:01 am
Barbiche
November 2, 2014 at 5:11 am
Hello,
Is it possible to change the location of my nav in my header.
Sorry I do not speak good English.
Thank you in advance.
Dan
November 4, 2014 at 12:13 am
#et-top-navigation { margin-top:-45px;}
#et-top-navigation { margin-top:65px;}
Chase
Dan
November 4, 2014 at 4:04 am
Chase
October 30, 2014 at 12:26 pm
Hey Dan! I adjusted the height of my logo, and tried using your
code to vertically align the menus, but alas, they remain
adjusted to the top of my header. Im trying to center the menu
with my logo. I input your code into my functions.php file in my
child theme, but its simply not working. Any ideas? Thanks for
your help!
Gogito
October 28, 2014 at 10:34 am
Oh, btw, the removing the sidebar line trick doesn;t seem to
work for me.
Dan
January 17, 2015 at 7:00 pm
Aqeel Meo
October 25, 2014 at 2:39 pm
Dan
November 14, 2014 at 3:49 pm
Mark
October 17, 2014 at 5:20 pm
Help!
I am trying to change the slider height, and I cant seem to do
it using your instructions. (I am using WP 4 and Divi 2.1.4)
I am using the full width slider.
In the slider properties area, I set the CSS Class field to:
CSS Class: slider_short
In my style sheet, I included this line of code:
.slider_short { height:300px;}
But it doesnt change the height at all.
Can you tell me what I need to do to make the slider shorter?
I am new to the Divi theme, so the more detailed answer, the
better.
Thanks so much.
Dan
November 14, 2014 at 4:06 pm
style
sheet,
change
every
instance
of
Phil Gebhardt
October 15, 2014 at 4:46 pm
Dan
January 17, 2015 at 4:27 pm
Ursula
Hi,
I love this site. I have been using all of your tips to customize
our new website. Any idea on how to make either a border or a
divider between the widgets in the sidebar? I really dont like
the look of the sidebar, when the widgets just all blend into
each other. Thanks! :)
Dan
November 18, 2014 at 7:37 pm
Julia
October 5, 2014 at 12:21 pm
gsocarecenter
October 3, 2014 at 1:40 pm
Dan,
Your blog is so helpful. Im new to developing, and am in the
process of trying to personalize our Divi theme website.
Id like to make our homepages slider height shorter, so in my
staging area, Ive added the CSS you suggest above
(.et_pb_slider { height: 425px; }). I also included the media
query functions to change this height in every possible screen
range.
Im running into a problem I cant figure out, though. While the
slider height changes fine, the content in the slide doesnt. So
half of my content gets cut off. Id like to figure out how to get
that content to center, so as the screen height changes for
different platforms, the content always remains in the center.
Any help you provide is much appreciated! Thanks again,
Dan
November 14, 2014 at 4:30 pm
tutur
October 3, 2014 at 12:25 pm
tutur
October 3, 2014 at 12:22 pm
Hai Dan, how can i change the title post in single post (i want
to change font size, color and font style )
Big thanks for your help
Dan
November 18, 2014 at 7:01 pm
xerf
September 24, 2014 at 10:31 pm
site
Dan
October 6, 2014 at 2:38 pm
.et_pb_slide:nth-of-type(1)
.et_pb_slide_image { top: 20% !important;
right: 0%; }
brendan
September 24, 2014 at 3:20 am
Dan
October 6, 2014 at 1:26 pm
brendan
October 8, 2014 at 1:43 am
Julia
September 22, 2014 at 11:38 am
Hi, we removed the top above the page container via #pagecontainer { padding-top:0px !important } and made the header
transparent, so that we have a nice full-screen picture.
However, we would like to keep it for the mobile version.. as it
looks very bad on the phone now. Next to that we need to add
a padding-top to the headers, as the header now lies on top of
the text of a Blog page for example. But this change should
then also not affect the mobile version. Thanks in advance for
Dan
October 2, 2014 at 4:29 pm
to:
Abinidi
September 22, 2014 at 2:02 am
Dan,
Im trying to increase the font size on the top header text that
has the phone number and email address option. CSS is the
#et-info-phone and #et-info. Ive tried what I thought was to edit
the style.css directly for it, but it still keeps staying the same.
any ideas?
PS: found your site while trying to resize the pb-slider. You
showed me what I tried for an hour to resize myself. Thanks
and great site!
Dan
October 2, 2014 at 4:03 pm
Trevor
September 21, 2014 at 11:02 am
Dan
September 24, 2014 at 2:18 pm
Yakiedward
September 19, 2014 at 6:38 am
Thank you for the illustrations youve shown us. Please add
illustrations on how to increase/decrease the width of the divi
sidebar so that it doesnt affect other screen displays on other
devices.
Dan
September 23, 2014 at 6:31 am
Kalonzi
September 18, 2014 at 9:15 am
Dan
September 23, 2014 at 5:13 am
Fred
September 18, 2014 at 12:41 am
Dan
September 23, 2014 at 5:30 am
michael neuvirth
September 17, 2014 at 5:51 pm
Hi
can you tell me please how can I make a very cool video
background like elegant themes does for divi?
I am a newbie so please walk me though it step by step
thanks
michael
Dan
September 19, 2014 at 5:27 pm
rimtan
September 15, 2014 at 7:09 am
Hi
You have created a fantastic blog here with so much friendly
advice for divi users. Its incredible.
I have a question about divi customization. I want to decrease
Dan
September 19, 2014 at 11:20 am
Dan
September 19, 2014 at 11:04 am
Jojo
September 14, 2014 at 11:58 am
Hi, for the divi right sidebar (or left), how can I make it such
that everything within it is perfectly at the centre? For example,
if you add an image to the sidebar, you will notice that the right
side of the image would be longer than the left side of the
image. I tried some padding and margin thingy but it didnt
work, hope you can help thanks :D
Dan
September 16, 2014 at 4:54 am
Frederick
September 13, 2014 at 2:29 pm
Dear Dan,
Fine reading here, all round! Thanks.
Ive a question. Not knowing you Im reluctant to ask you to
take time but then, in my week of work toward a solution,
youre blog here is the most authoratative, friendly site Ive
come across in a long time. That said, heres my question
with a bit of an intro to set the stage:
Footer has been altered (via the footer.php doc in the parent
theme Divi).
Up to date versions of Divi and WP are in place and Im using
a Divi-child theme to alter design mostly.
The original footer.php file contained the WP and Elegant
Themes links. Ive replaced all their text with my one text.
Each page reveals (in code view) that the footer is outside of
the container that normally would allow it to cascade to the
Dan
September 14, 2014 at 6:53 am
Hi Frederick,
Thanks for the kind words, and Im more than happy
to help out when I can.
Am Im right in thinking that you want the footer to
stay at the bottom of the page (so that you only see
it when you scroll to the bottom of the page), rather
than having it hover over the page at all times? If
so, its an easy fix. I notice in your custom CSS
(which you can find in the ePanel, at the bottom of
the General Settings tab), you have the following
code:
#main-footer {
background-color: #ffffff;
bottom: 0;
position: fixed;
width: 1200px;
z-index: 999;
}
Geno
September 12, 2014 at 11:01 am
This is great Dan. Thank you so much. I will share this on the
Divi Theme Users Facebook forum. Are you in that group
already?
Dan
September 12, 2014 at 11:19 am
Geno
September 12, 2014 at 11:43 am
Chris
September 10, 2014 at 7:06 am
Just to clarify:
blue module | yellow module | green module | purple module
Chris
September 10, 2014 at 7:04 am
I have been trying to figure this out for hours and have run into
many walls doing it. I want to make a section containing four
horizontal modules 1/4 of the width of the page each. Each
module will be filled with a different background color. I want
those four modules to touch each other. Is there a solution to
this?
Dan
September 11, 2014 at 3:53 pm
Hi Chris,
You can do it by adding the following CSS to the
theme:
.post-80 .et_pb_column_1_4:nth-of-type(1) {
/* first module */
background-color:blue; color:white;
}
.post-80 .et_pb_column_1_4:nth-of-type(2) {
/* second module */
background-color:yellow; color:black;
}
.post-80 .et_pb_column_1_4:nth-of-type(3) {
/* third module */
background-color:green; color:white;
}
.post-80 .et_pb_column_1_4:nth-of-type(4) {
/* fourth module */
background-color:purple; color:white;
}
.post-80 .et_pb_column_1_4 { /* all the
modules */
margin-right:0; padding-left:22px; paddingright:22px;
}
MrMiniVee
September 7, 2014 at 11:23 am
Dan
September 11, 2014 at 3:18 pm
Hey MrMiniVee,
Ive had a play around with this. On my test site, I
wasnt able to mess up the horizontal centering, but
I did notice that making the logo taller messed up
the vertical centering (i.e. the links need to be
moved down to sit in the middle of the header bar).
In case this is the problem you were having, Ive
added a section on fixing the header links vertical
alignment.
But if not, if youre able to send me a link to the
page on which the error is happening or explain
further what you are seeing Ill do my best to help
you out.
ling
September 4, 2014 at 11:50 pm
Dan
September 7, 2014 at 10:49 am
Hi ling,
Sorry, could I get you to explain a bit more what it is
youre trying to do? Im not completely sure what it
is youre trying to achieve. Are you looking to add a
ling
September 7, 2014 at 11:15 am
Dan
September 7, 2014 at 4:21 pm
the
Abraham
September 4, 2014 at 12:57 pm
Hey Dan,
I was wondering if theres a way to change the #pagecontainer{ padding-top:xx} when scaled to the mobile view,
differently than on normal view.
But also, I would like to set the padding-top to be different on
the homepage, versus the inside pages.
So in total there would be four different variables to the
padding-top, of #page-container.
I want to do this because Im pushing a header image under a
transplucent version of the top navigation, but it doesnt look
right on the mobile views, since it pushes h1 title text up into
the navigation bar.
If you can help me youre a life saver!
Thank you,
Abe
Dan
September 7, 2014 at 10:13 am
Hi Abe,
I think this will do what you need:
Abraham
September 7, 2014 at 2:22 pm
Dan
September 7, 2014 at 3:46 pm
Abraham
September 7, 2014 at
9:15 pm
Dan
September 7, 2014 at
9:41 pm
Beer
and
backlinks
youre
you
got
it
looking awesome!
Abraham
September 7, 2014 at
7:10 pm
A stout, or a lager,
maybe a Guinness?
I seem to have the
issue mostly sorted
out,
but
theres
zone
notice
middle
that
messing
Divi
with
is
as
somewhere
between
600-800
pixels it messes up
the height again and
the
background
to
set
background
the
image
out
stops
properly
and so do some of
the h2s lower on the
page (this is a
much lower priority
atm
than
the
previous task)
Thank you brother!
Abe
Dan
September 12, 2014 at
6:13 am
setting
semi-transparent
background
for
the
image
header,
your
off-note.
Dan
September 7, 2014 at
8:17 pm
can
see
/* large
screens */
...
@media only
screen and (
min-width:
768px ) and (
max-width:
980px ) { /*
funky zone */
...
}
@media only
screen and (
max-width:
767px ) { /*
mobiles */
...
}
by
the
previous
for
the
mobile part.
The widths are a bit
higher
than
you
main
breakpoints.
Anyway, give it a
shot and adjust if
needed.
Ill take a look at the
mobile
background
image
separately
Massimo
September 4, 2014 at 9:45 am
Dan
September 7, 2014 at 7:32 am
Steve
January 3, 2015 at 8:06 pm
Hi Dan,
You have created a very useful page
here, thanks. Im fairly new to Divi and
still testing it out. Im also having
problems with the full width slider. You
mention its a fixed size, but it has to be
responsive for mobiles etc. so would your
solution require an @media or did you
have something else in mind?
The main problem I have is ensuring the
image fits correctly on all devices. It
never
does
and
its
proving
very
Dan
February 2, 2015 at 3:36 pm
Hi Steve,
Ive just updated the code for
changing the slider height. Ive
added a media query so that
my
fix
desktops.
only
On
applies
mobiles,
on
it
Andy
September 2, 2014 at 2:23 am
Dan
September 5, 2014 at 8:21 am
brendan
August 27, 2014 at 1:58 am
How can you add a header image above the nav? Ive been
trying all types of things. Ideally, it could be large, like the size
of the slider but full width.
Dan
September 7, 2014 at 6:26 am
R
August 25, 2014 at 7:14 am
Hi Dan,
Is there a way I could add a widget in the header section (on
the right) because I will not be having any links being shown in
that area.
Thanks.
Dan
September 5, 2014 at 8:56 pm
widget
area
(named
Header)
in
your
gallager
August 21, 2014 at 11:58 pm
Dan
August 23, 2014 at 4:34 pm
Hi gallager,
Which images are you trying to center? If you can
point me to an example, I should be able to help
you out.
To remove the Divi header, you can add the
following CSS:
#main-header { display:none; }
Brent
August 18, 2014 at 12:45 am
Hi Dan
Im new to CSS. Is it possible to change the font size in only
one text module with CSS in Divi?
Thanks
Dan
August 23, 2014 at 9:03 pm
Hey Brent,
You can do it like so:
.post-57
/* apply to
/* apply to the
/* apply to the
h4ns3n
August 5, 2014 at 2:05 pm
Dan
September 5, 2014 at 9:56 pm
$image_output = sprintf(
'<a href="%1$s" title="%2$s"
rel="nofollow">
<img src="%3$s" alt="%2$s" /><span
class="et_overlay"></span>
</a>',
esc_attr( $full_src ),
esc_attr( $attachment->post_title ),
esc_attr( $thumb_src )
);
To:
$image_output = sprintf(
'<a href="%1$s" title="%2$s"
rel="nofollow">
<img src="%3$s" alt="%2$s" /><span
class="et_overlay"></span>
</a>',
esc_attr( $full_src ),
esc_attr( $attachment->post_excerpt ),
esc_attr( $thumb_src )
);
to post_excerpt.
sachin22
July 25, 2014 at 1:19 pm
please help
I am a wordpress Developer and want help below what i want
i want to make some changes in blog section of divi theme i
am enable to find file from which blog is coming can anybody
help me
Thanks In advance
Dan
September 5, 2014 at 9:20 pm
/wp-content/themes/Divi/index.php
Michael
July 19, 2014 at 7:53 pm
Hi,
I wanted to create a new widget area in the main header. Is
there a way to use the sidebar module for the main header? I
try the snippet codes but it does not works in the function.php.
Or maybe I pasted wrong codes or place. Can you help?
Check out the snippet codes
'Header Sidebar',
'id' => 'header_sidebar',
Dan
September 5, 2014 at 9:06 pm
farmfoodie
July 11, 2014 at 4:44 pm
Dave
January 29, 2015 at 7:33 am
Hi There!
Have you tried using the blurb module instead of
the image one.. this centres the image automatically
for you instead of having to use CSS. Just upload
the image and dont add any text on it. Hope that
helps!
Thanks,
Dave
Dan
July 16, 2014 at 4:37 pm
Hi farmfoodie,
By permanent header, do you mean the one which
starts off big, but then shrinks when you scroll down
a bit? It looks like youve now managed to disable
this from within Divis control panel, am I right?
Another (less ideal) way to do it is by adding this the
end of the Divi themes style.css file:
.et-fixed-header { display:none; }
Add a Comment
Name*
Email*
Website