-
Search Results
-
Topic: menu
Hello There,
I am using a Fullwidth Easy Slider and I want to manage the size and position of the texts.
I already did something. (I am proud as a total css and html and wp beginner. ;-) thanks to the input i found in this forum)https://kuhl-consult.josk-design.de/5977-2/
(password in private content)It’s not that bad, but it’s not responsive. I am working o a laptop and a big screen and on the big screen the fonts are too small, and the position is not ok.
Is there a way to say via css that the font should be bigger on big screens and smaller on small screens and the position should be relative like 10% from top and 10% from left for example?this is the css I’ve put in quick css:
/*—————————————-
// CSS – fullwidth font style
//————————————–*//* fullwidth slider title */
.av_slideshow_full .avia-caption-title {
font-size: 40px !important;
line-height: 170% !important;
font-weight: 300 !important;
color: #663515 !important;
}/* fullwidth slider caption content */
.av_slideshow_full .avia-caption-content p {
font-size: 30px;
line-height: 150%;
font-weight: 200;
color: #000000 !important;
}/* fullwidth slider caption content */
.avia_transform .av_slideshow_full.avia-fade-slider .active-slide .avia-caption-content
{
width: 100%;
margin: 0 auto;}
.avia_transform .av_slideshow_full .avia-caption-title {
width: 100%;
margin: 0 auto;
position: relative;}
@media only screen and (min-width: 768px) and (max-width: 1920px){
.avia_transform .av_slideshow_full.avia-fade-slider .active-slide .avia-caption-content
{
width: 100%;
margin: 0 auto;}
.avia_transform .av_slideshow_full .avia-caption-title {
width: 100%;
margin: 0 auto;}
}.slideshow_caption {
z-index: 100;
width: 65%;
position: absolut;
bottom: 0;
top: -15.0em;
left: -5.2em;
height: 100%;
display: block;
text-decoration: none;
padding: -100%;
}Would be so great if you could help me. :)
Best regards
JosephineTopic: Font-weight not catching
Hi,
I have just made a site using Enfold and it’s looking quite fine. There are a couple of things that are not working yet and I am not sure if it is due to the server, the browser being used or something else.
So what I would like to do is this. In the menu which finds itself on the left side (I am using the Enfold Photography Portfolio demo as the basis), I cannot seem to change the Font weight to bold or any of the other weight numbers.
In Advanced Styling, I have selected Main Menu Links to customise. Font Color, Background Color, Font Size, Font Family and Text Transform all work. However, whichever option I choose for Font Weight does not seem to catch. I don’t see any change while with the other options just mentioned, I do.
I have also downloaded the same font from Google and uploaded the versions I want to use, but they still don’t catch.
The font I would like to use is Raleway Bold, or 700, 800.
Is there a way I can maybe use some CSS or something to make this work?
Thanks in advance.
Topic: Codepen code to enfold
Hi Guys,
I have a problem with a codepen that I modified. I would like to ask how I can import my codepen code into a page in Enfold. Below you can find my html/css and javascript code.
I already tried to put its javascript in the function.php. I put the html in a code block. And i put the css in the quick css of enfold.
Unfortunately that didn’t work
HTML
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>lenobi Parallax Cards</title> <link href="https://fonts.googleapis.com/css?family=Roboto:300,400,700" rel="stylesheet"> </head> <body> <div class="wrapper"> <!-- Nike 19 --> <div class="card card--19"> <div class="card__header card__header--19"> <div class="card__watermark" data-watermark="Training"></div> <img src="https://test.dutchdesignfabriek.com/wp-content/uploads/2022/02/Logo-Lenobi-wit-met-tekst-wit-02.png" alt="Nike" class="card__logo card__will-animate"> <span class="card__price card__will-animate">onze diensten</span> <h1 class="card__title card__will-animate">Training</h1> <span class="card__subtitle card__will-animate">Neem deel aan een van onze trainingen. We verzorgen individuele en teamgerichte trainingen op mbo+ en hbo-niveau aan professionals in de zorg, detailhandel en beveiliging. </span> </div> <div class="card__body"> <img src="https://test.dutchdesignfabriek.com/wp-content/uploads/2022/02/training_patroon_2.png" alt="Nike 19" class="card__image card__will-animate"> <div class="card__wish-list card__wish-list--19 card__will-animate">Lees meer</div> <span class="card__category card__will-animate">afgestemd op jouw doel</span> </div> </div> <!-- Nike Solstice --> <div class="card card--solstice"> <div class="card__header card__header--solstice"> <div class="card__watermark" data-watermark="preventie"></div> <img src="https://test.dutchdesignfabriek.com/wp-content/uploads/2022/02/Logo-Lenobi-wit-met-tekst-wit-02.png" alt="Nike" class="card__logo card__will-animate"> <span class="card__price card__will-animate">Onze diensten</span> <h1 class="card__title card__will-animate">Preventie</h1> <span class="card__subtitle card__will-animate">Maak gebruik van Preventie Professionals® die ondersteuning bieden en ervoor zorgen dat er voldoende individuele aandacht overblijft voor de cliënt.</span> </div> <div class="card__body"> <img src="https://test.dutchdesignfabriek.com/wp-content/uploads/2022/02/training_patroon_B_1.png" alt="Nike Solstice" class="card__image card__will-animate"> <div class="card__wish-list card__wish-list--solstice card__will-animate">Lees meer</div> <span class="card__category card__will-animate">het gewenste resultaat</span> </div> </div> <!-- Nike Huarache --> <div class="card card--huarache"> <div class="card__header card__header--huarache"> <div class="card__watermark" data-watermark="Care"></div> <img src="https://test.dutchdesignfabriek.com/wp-content/uploads/2022/02/Logo-Lenobi-wit-met-tekst-wit-02.png" alt="Nike" class="card__logo card__will-animate"> <span class="card__price card__will-animate">Onze diensten</span> <h1 class="card__title card__will-animate">Care</h1> <span class="card__subtitle card__will-animate">In de complexe zorg wordt het steeds moeilijker om cliënten de noodzakelijke primaire zorg te geven. Teams staan vaak onder grote druk en medewerkers wisselen elkaar doorgaans snel af.</span> </div> <div class="card__body"> <img src="https://test.dutchdesignfabriek.com/wp-content/uploads/2022/02/training_patroon_C_3.png" alt="Nike Huarache" class="card__image card__will-animate"> <div class="card__wish-list card__wish-list--solstice card__will-animate">Lees meer</div> <span class="card__category card__will-animate">professionele ondersteuning</span> </div> </div> </div> <!-- /wrapper --> <div class="cards-placeholder"> <div class="cards-placeholder__item"></div> <div class="cards-placeholder__item"></div> <div class="cards-placeholder__item"></div> </div> </body> </html>html, body { height: 100%; width: 100%; margin: 0; padding: 0; font-family: "Roboto", "Helvetica", sans-serif; transition: background-color 0.2s; will-change: background-color; } .inspired-by { display: block; position: relative; margin-bottom: 15px; text-align: center; color: #fff; font-size: 14px; } .wrapper { position: relative; overflow-x: hidden; width: 100%; height: 100%; } .card { display: block; position: absolute; top: 25px; margin: 0 auto; width: 350px; background-color: #fff; border-radius: 15px; box-shadow: 0 30 50 rgba(0, 0, 0, 0.2); transform: translateX(-50%); transition: left 0.5s ease-out; will-change: left; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none; } .card--19 { left: 50%; } .card--solstice, .card--huarache { left: 150%; } .card__header { position: relative; height: 170px; padding: 30px 30px 300px; border-top-right-radius: 15px; border-top-left-radius: 15px; color: #fff; } .card__header--19 { background-color: #F72648; background-image: linear-gradient(#F72648, #FCCB3C); background: #F72648; background: linear-gradient(#038ac4, #4ec1c1); } .card__header--solstice { background-color: #3CA3FC; background-image: linear-gradient(#3CA3FC, #FFD300); background: #3CA3FC; background: linear-gradient(#3CA3FC, #FFD300); } .card__header--huarache { background-color: #26C9F7; background-image: linear-gradient(#26C9F7, #DFFC3C); background: #26C9F7; background: linear-gradient(#26C9F7, #DFFC3C); } .card__watermark { overflow: hidden; position: absolute; bottom: 10px; left: 0; width: 100%; } .card__watermark::after { content: attr(data-watermark); position: relative; left: -20px; color: rgba(0, 0, 0, .3); font-size: 240px; font-weight: 700; text-transform: uppercase; } .card__logo { width: 110px; height: auto; } .card__price { float: right; font-size: 16px; font-weight: 300; } .card__title { margin: 35px 0 20px; font-size: 15px; line-height: 1.1em; text-transform: uppercase; letter-spacing: 1.5px; } .card__subtitle { display: block; font-size: 13px; font-weight: 300; } .card__body { position: relative; padding: 40px 30px 20px; } .card__image { z-index: 1; position: absolute; top: -230px; left: 30px; width: 125%; user-select: none; -moz-user-select: none; -webkit-user-drag: none; -webkit-user-select: none; -ms-user-select: none; } .card__wish-list { display: block; width: 50%; margin: 0 auto 15px; padding: 15px; border: 2px solid #fff; border-radius: 20px; text-align: center; text-transform: uppercase; font-size: 14px; } .card__wish-list--19 { color: #038ac4; border-color: #038ac4; } .card__wish-list--solstice { color: #FFBA00; border-color: #FFBA00; } .card__wish-list--huarache { color: #26C9F7; border-color: #26C9F7; } .card__category { display: block; font-size: 12px; color: #AEAEAE; text-transform: uppercase; text-align: center; } .card__will-animate { will-change: transform; } .cards-placeholder { display: block; position: relative; margin-bottom: 15px; text-align: center; } .cards-placeholder__item { opacity: 0.3; display: inline-block; margin-right: 10px; background-color: #fff; width: 30px; height: 5px; border-radius: 5px; transition: opacity 0.2s; will-change: opacity; } .cards-placeholder__item--active { opacity: 1; }Javascript
(function () { 'use strict'; var BODY_BACKGROUNDS = [ '#91FDFF', '#FFBA00', '#4054FF' ]; function Slider () { this.cards = document.querySelectorAll('.card'); this.currentIndex = 0; this.isDragging = false; this.startX = 0; this.currentX = 0; this.initEvents(); this.setActivePlaceholder(); } // initialize drag events Slider.prototype.initEvents = function () { document.addEventListener('touchstart', this.onStart.bind(this)); document.addEventListener('touchmove', this.onMove.bind(this)); document.addEventListener('touchend', this.onEnd.bind(this)); document.addEventListener('mousedown', this.onStart.bind(this)); document.addEventListener('mousemove', this.onMove.bind(this)); document.addEventListener('mouseup', this.onEnd.bind(this)); }; // set active placeholder Slider.prototype.setActivePlaceholder = function () { var placeholders = document.querySelectorAll('.cards-placeholder__item'); var activePlaceholder = document.querySelector('.cards-placeholder__item--active') if (activePlaceholder) { activePlaceholder.classList.remove('cards-placeholder__item--active'); } placeholders[this.currentIndex].classList.add('cards-placeholder__item--active'); var bodyEl = document.querySelector('body'); bodyEl.style.backgroundColor = BODY_BACKGROUNDS[this.currentIndex]; }; // mousedown event Slider.prototype.onStart = function (evt) { this.isDragging = true; this.currentX = evt.pageX || evt.touches[0].pageX; this.startX = this.currentX; var card = this.cards[this.currentIndex]; // calculate ration to use in parallax effect this.windowWidth = window.innerWidth; this.cardWidth = card.offsetWidth; this.ratio = this.windowWidth / (this.cardWidth / 4); }; // mouseup event Slider.prototype.onEnd = function (evt) { this.isDragging = false; var diff = this.startX - this.currentX; var direction = (diff > 0) ? 'left' : 'right'; this.startX = 0; if (Math.abs(diff) > this.windowWidth / 4) { if (direction === 'left') { this.slideLeft(); } else if (direction === 'right') { this.slideRight(); } else { this.cancelMoveCard(); } } else { this.cancelMoveCard(); } }; // mousemove event Slider.prototype.onMove = function (evt) { if (!this.isDragging) return; this.currentX = evt.pageX || evt.touches[0].pageX; var diff = this.startX - this.currentX; diff *= -1; // don't let drag way from the center more than quarter of window if (Math.abs(diff) > this.windowWidth / 4) { if (diff > 0) { diff = this.windowWidth / 4; } else { diff = - this.windowWidth / 4; } } this.moveCard(diff); }; // slide to left direction Slider.prototype.slideLeft = function () { // if last don't do nothing if (this.currentIndex === this.cards.length - 1) { this.cancelMoveCard(); return; } var self = this; var card = this.cards[this.currentIndex]; var cardWidth = this.windowWidth / 2; card.style.left = '-50%'; this.resetCardElsPosition(); this.currentIndex += 1; this.setActivePlaceholder(); card = this.cards[this.currentIndex]; card.style.left = '50%'; this.moveCardEls(cardWidth * 3); // add delay to resetting position setTimeout(function () { self.resetCardElsPosition(); }, 50); }; // slide to right direction Slider.prototype.slideRight = function () { // if last don't do nothing if (this.currentIndex === 0) { this.cancelMoveCard(); return; } var self = this; var card = this.cards[this.currentIndex]; var cardWidth = this.windowWidth / 2; card.style.left = '150%'; this.resetCardElsPosition(); this.currentIndex -= 1; this.setActivePlaceholder(); card = this.cards[this.currentIndex]; card.style.left = '50%'; this.moveCardEls(-cardWidth * 3); // add delay to resetting position setTimeout(function () { self.resetCardElsPosition(); }, 50); }; // put active card in original position (center) Slider.prototype.cancelMoveCard = function () { var self = this; var card = this.cards[this.currentIndex]; card.style.transition = 'transform 0.5s ease-out'; card.style.transform = ''; this.resetCardElsPosition(); }; // reset to original position elements of card Slider.prototype.resetCardElsPosition = function () { var self = this; var card = this.cards[this.currentIndex]; var cardLogo = card.querySelector('.card__logo'); var cardPrice = card.querySelector('.card__price'); var cardTitle = card.querySelector('.card__title'); var cardSubtitle = card.querySelector('.card__subtitle'); var cardImage = card.querySelector('.card__image'); var cardWishList = card.querySelector('.card__wish-list'); var cardCategory = card.querySelector('.card__category'); var cardWillAnimate = card.querySelectorAll('.card__will-animate'); // move card elements to original position cardWillAnimate.forEach(function (el) { el.style.transition = 'transform 0.5s ease-out'; }); cardLogo.style.transform = ''; cardPrice.style.transform = ''; cardTitle.style.transform = ''; cardSubtitle.style.transform = ''; cardImage.style.transform = ''; cardWishList.style.transform = ''; cardCategory.style.transform = ''; // clear transitions setTimeout(function () { card.style.transform = ''; card.style.transition = ''; cardWillAnimate.forEach(function (el) { el.style.transition = ''; }); }, 500); }; // slide card while dragging Slider.prototype.moveCard = function (diff) { var card = this.cards[this.currentIndex]; card.style.transform = 'translateX(calc(' + diff + 'px - 50%))'; diff *= -1; this.moveCardEls(diff); }; // create parallax effect on card elements sliding them Slider.prototype.moveCardEls = function (diff) { var card = this.cards[this.currentIndex]; var cardLogo = card.querySelector('.card__logo'); var cardPrice = card.querySelector('.card__price'); var cardTitle = card.querySelector('.card__title'); var cardSubtitle = card.querySelector('.card__subtitle'); var cardImage = card.querySelector('.card__image'); var cardWishList = card.querySelector('.card__wish-list'); var cardCategory = card.querySelector('.card__category'); var cardWillAnimate = card.querySelectorAll('.card__will-animate'); cardLogo.style.transform = 'translateX(' + (diff / this.ratio) + 'px)'; cardPrice.style.transform = 'translateX(' + (diff / this.ratio) + 'px)'; cardTitle.style.transform = 'translateX(' + (diff / (this.ratio * 0.90)) + 'px)'; cardSubtitle.style.transform = 'translateX(' + (diff / (this.ratio * 0.85)) + 'px)'; cardImage.style.transform = 'translateX(' + (diff / (this.ratio * 0.35)) + 'px)'; cardWishList.style.transform = 'translateX(' + (diff / (this.ratio * 0.85)) + 'px)'; cardCategory.style.transform = 'translateX(' + (diff / (this.ratio * 0.65)) + 'px)'; }; // create slider var slider = new Slider(); })();Hi,
I’d like to add the search icon before my last menu item. Bordered works and I can see the icon when using this in the navigation label:
[av_font_icon icon='ue803' font='entypo-fontello' style='' caption='' size='20' position='left' color='' link='' linktarget='' animation='deactivated' id='' custom_class='' av_uid='' admin_preview_bg=''][/av_font_icon]Zoeken op deze website
However the combination of the two doesn’t seem to work. I can’t get the icon inside the blue border. Please see screendump here
Best regards,
Steven
Hello,
Can you please check the homepage slideshow? The button is hidden on mobile devices. Is there a way to increase the height on mobiles only to solve this problem?
There is also a problem with the image caption being outside the image area, also on mobile devices only.
Thank you



