jori velthoven
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Virtue] Change topbar menu widthLate response but thank you both, tried the second option first and that works perfectly. Stacy, thanks for the great explaination tho!
Forum: Themes and Templates
In reply to: How can i make a full screen page?Thanks!
Forum: Themes and Templates
In reply to: How can i make a full screen page?Ok I got a whole lot further but i can’t seem to get the background of my content-container to be transparent. The white part should be fully transparent and the optin form partially.
https://www.jeevee.training/oefenpagina
Can someone help me out?
Forum: Themes and Templates
In reply to: How can i make a full screen page?Thanks! I tried looking at how you found that name and did the same for the pagename. It looks like its called ‘div#homeheader’ but that doesn’t work..
If that’s too difficult then i’m doing it like this, thats fine too!
Thank you again!
Forum: Themes and Templates
In reply to: How can i make a full screen page?thanks! It doesn’t fully work yet, the footer didn’t disappear, and the wrapper and pagename arn’t targeted yet..
https://www.jeevee.training/oefenpagina
This is what’s in my page now..:
<style>
header.banner.headerclass {
display: none;
}sidebar {
display: none;
}footer {
display: none;
}</style>
lalalalalalalalal
Forum: Themes and Templates
In reply to: How can i make a full screen page?Would be nice if i’m able to repeat it afterwards ??
Forum: Themes and Templates
In reply to: How can i make a full screen page?Forum: Themes and Templates
In reply to: How can i make a full screen page?Thanks Josh, for the quick response.
I was thinking, I have the posibility to define some different page-styles.
With or without sidebars and such. I was thinking to edit one of these options into removing everything so I can ad mutilple of these landingpages if i want to.I might not be on the right track with this since i just started with building websites and such.
This is the option: Feature. Can you show me what I need to remove? Thanks!
<?php
/*
Template Name: Feature
*/
?>
<?php global $post;
$headoption = get_post_meta( $post->ID, ‘_kad_page_head’, true );
if ($headoption == ‘flex’) {
get_template_part(‘templates/flex’, ‘slider’);
} else if ($headoption == ‘carousel’) {
get_template_part(‘templates/carousel’, ‘slider’);
} else if ($headoption == ‘rev’) {
get_template_part(‘templates/rev’, ‘slider’);
} else if ($headoption == ‘video’) { ?>
<section class=”postfeat container”>
<?php $swidth = get_post_meta( $post->ID, ‘_kad_posthead_width’, true );
if (!empty($swidth)) {
$slidewidth = $swidth;
} else {
$slidewidth = 1140;
} ?>
<div class=”videofit” style=”max-width:<?php echo esc_attr($slidewidth);?>px; margin-left: auto; margin-right:auto;”>
<?php echo get_post_meta( $post->ID, ‘_kad_post_video’, true ); ?>
</div>
</section>
<?php } else if ($headoption == ‘image’) {
$height = get_post_meta( $post->ID, ‘_kad_posthead_height’, true );
$swidth = get_post_meta( $post->ID, ‘_kad_posthead_width’, true );
$uselightbox = get_post_meta( $post->ID, ‘_kad_feature_img_lightbox’, true );
if (!empty($height)) {
$slideheight = $height;
} else {
$slideheight = 400;
}
if (!empty($swidth)) {
$slidewidth = $swidth;
} else {
$slidewidth = 1140;
}
if (!empty($uselightbox)) {
$lightbox = $uselightbox;
} else {
$lightbox = ‘yes’;
}
$thumb = get_post_thumbnail_id();
$img_url = wp_get_attachment_url( $thumb,’full’ );
$image = aq_resize( $img_url, $slidewidth, $slideheight, true ); //resize & crop the image
if(empty($image)) {
$image = $img_url;
} ?>
<div class=”postfeat container”>
<div class=”imghoverclass img-margin-center”>
<?php if($lightbox == ‘yes’) { ?>
” data-rel=”lightbox” class=”lightboxhover”>
<?php } ?>
<img src=”<?php echo esc_url($image); ?>” alt=”<?php the_title(); ?>” />
<?php if($lightbox == ‘yes’) {?>
<?php } ?>
</div>
</div>
<?php } ?><div id=”pageheader” class=”titleclass”>
<div class=”container”>
<?php get_template_part(‘templates/page’, ‘header’); ?>
</div><!–container–>
</div><!–titleclass–><div id=”content” class=”container”>
<div class=”row”>
<div class=”main <?php echo esc_attr(kadence_main_class()); ?>” role=”main”>
<?php get_template_part(‘templates/content’, ‘page’); ?>
<?php global $virtue;
if(isset($virtue[‘page_comments’]) && $virtue[‘page_comments’] == ‘1’) {
comments_template(‘/templates/comments.php’);
} ?>
</div><!– /.main –>