-
Search Results
-
Hi, you guys have already helped me a lot with a lot of questions, but I have a follow-up question about a previous topic.
https://kriesi.at/support/topic/add-extra-logos-in-head-space/
The extra text in my header space now shows up as 1st line black, 2nd line blue like a hyperlink.
I would like to change the color. I want the first line to be blue (not a hyperlink but this color: #51b2ea) and the second line to be orange (#fd8917 stil a hyperlink). Is there any way to do this? I’ve included below the quick CSS lines I currently use. Also the lines in my functions.php.
My seconds follow-up question to this is the placement of the NRTO logo and the Social links. Can I put the NRTO all the way on the right and the social links where the NRTO was? (So essentially swap them out for each other).
Thanks in advance!
#scroll-top-link {display: none; } strong.second-logo { float: right!important; position: relative; margin-right: 21%; } .second-logo img{ padding-top:50px; } .header-scrolled .second-logo img { padding-top: 10px; } #top .social_bookmarks li a { font-size: 25px; } @media only screen and (max-width: 768px) { #top .social_bookmarks li a { font-size: 18px; } strong.second-logo { margin-right: 30%; }} #top .social_bookmarks li a { color: #5cb4e4; } #top .avia-logo-element-container .slide-image { background: transparent !important ; } .main_color input[type='submit'] { background-color: #51b3ea; color: white; border-color: #51b3ea; } .main_color input[type='submit']:hover { background-color: ##51b3ea; color: white; border-color: #51b3ea; } .header-message { position: relative; top: 80px; left: 38%; } @media only screen and (max-width: 769px) { .header-message { left: 40%; }} @media only screen and (max-width: 480px) { .header-message { top: 190px; left: 13%; }} .header-message { margin-top: -44px; } .header-scrolled .header-message { top: 50px; } .header-message * { font-weight: bold !important; } .header-message { z-index: 99; } .header-scrolled .logo img,.header-scrolled .second-logo a { padding-top: 0; } .logo img { padding-top: 20px; } strong.second-logo a { padding-top: 10px; } @media only screen and (max-width: 768px) { .header-message { display: none!important; }} @media only screen and (max-width: 480px) { strong.second-logo { margin-right: 20%; }} @media only screen and (max-width: 768px) { .second-logo { display: none !important; }} .home .avia-builder-el-5 { margin-right: 8%; margin-top: 20px; } .home .avia-builder-el-4 { margin-left: 8%; margin-top: 20px; }function second_logo($logo) { $logo .= '<strong class="second-logo logo bg-logo"><a href="http://www.nrto.nl/partnerorganisaties/kwaliteitslabels_en_keurmerken/geschillencommissie/"><img src="http://www.tophbo.org/wp-content/uploads/2015/04/NRTO-logo-2.jpg"></a></strong>'; return $logo; } add_filter('avf_logo_final_output', 'second_logo'); function my_home_category( $query ) { if ( $query->is_home() && $query->is_main_query() ) { $query->set( 'cat', '17'); } } add_action( 'pre_get_posts', 'my_home_category' ); add_action('ava_main_header', 'ava_main_header_mod'); function ava_main_header_mod() { $output = '<div class="header-message">'; $output .= '<span class="blue bold">Kom naar een informatieochtend!</span> <br>'; $output .= '<a href="http://www.tophbo.org/informatieochtend/" class="orange bold">Loop even binnen of meld je hier aan!</a>'; $output .= '</div>'; echo $output; } function custom_widget_featured_image() { global $post; echo tribe_event_featured_image( $post->ID, 'thumbnail' ); } add_action( 'tribe_events_list_widget_before_the_event_title', 'custom_widget_featured_image' );Hi guys, I’m trying to add on a white border around 3 images on my homepage. I added in a custom CSS class on the images themselves (homepage-images) and have used this code in the quick CSS but nothing’s changing…
#homepage-images.avia-image-container img {
border: 15px white;
padding: 5px;
}I’d also like to know how to add a shadow to the border, if that’s ok/possible?
Could you please let me know what I’m doing wrong or perhaps I have something in my quick CSS that’s overriding it?
Login deets below if you need
Thank you :)
SarahTopic: Homepage margin
Hi again!
I want to place an image on top of the homepage. Below the menu and logo area.
The padding (or margin) is too much and I can’t get it fixed.
I’m talking about the “avia-image-container”.
Have been playing with Firebug to get it right.Have given the image an custom CSS class. “meerwaardeaxs”
Need the following addition in the CSS..meerwaardeaxs .avia-image-container{
margin-top: -53px;
margin-bottom: -78px;
}Doesn’t seem to work.
Can you help me please?
Thx in advance!
Topic: Border for images
How do I get there to be a white border for my images?
If at all possible I would like this to be with the Custom Css Class within the image element so I can control with images this applies to.
I used this link, but the best I could do with it was to make all of the images have a white border and it also put borders within the Google Map element.
I am at a loss a loss at this point, how do I make this happen?
Thank you!!
I do have this already in my functions.php: add_theme_support(‘avia_template_builder_custom_css’);
Here is my website : http://www.warriorstronghold.com/
There should be a fullwidth slider at the very top, it even exists in the HTML source code:
<div id=”full_slider_1″ class=”avia-fullwidth-slider main_color avia-shadow avia-builder-el-0 el_before_av_heading avia-builder-el-first container_wrap sidebar_right”><div data-size=”featured_large” data-lightbox_size=”large” data-animation=”slide” data-ids=”’3475′,’3476′,’3477′,’3498′” data-video_counter=”0″ data-autoplay=”true” data-bg_slider=”false” data-slide_height=”” data-handle=”av_slideshow_full” data-interval=”9″ data-class=” ” data-css_id=”” data-scroll_down=”” data-control_layout=”av-control-default” data-custom_markup=”” data-perma_caption=”” data-src=”” data-position=”top left” data-repeat=”no-repeat” data-attach=”scroll” data-stretch=”” data-default-height=”42″ class=”avia-slideshow avia-slideshow-1 av-control-default avia-slideshow-featured_large av_slideshow_full avia-slide-slider ” itemscope=”itemscope” itemtype=”https://schema.org/ImageObject”><ul class=”avia-slideshow-inner” style=”padding: 0px; height: 0px;”></div></div>For some reason, it is not showing up. It showed up before, but one day it disappeared. I tried updating enfold; using CSS to try and not make it “display:none” (in case it might be for some reason).
Can someone advice me on what I should do?
Thanks
KennethHi,
I’m trying to add a div container to top header area so to insert an image background. I have secondary Header Secondary menu set on righthand side. This new div needs to be placed on the lefthand side.
Can you advise how this is done correctly please.
Thanks
My header.php code is
<?php
global $avia_config;$style = $avia_config[‘box_class’];
$responsive = avia_get_option(‘responsive_active’) != “disabled” ? “responsive” : “fixed_layout”;
$blank = isset($avia_config[‘template’]) ? $avia_config[‘template’] : “”;
$av_lightbox= avia_get_option(‘lightbox_active’) != “disabled” ? ‘av-default-lightbox’ : ‘av-custom-lightbox’;?><!DOCTYPE html>
<html <?php language_attributes(); ?> class=”<?php echo ” html_{$style} “.$responsive.” “.$av_lightbox.” “.avia_header_class_string();?> “>
<head>
<meta charset=”<?php bloginfo( ‘charset’ ); ?>” /><!– page title, displayed in your browser bar –>
<title><?php if(function_exists(‘avia_set_title_tag’)) { echo avia_set_title_tag(); } ?></title><?php
/*
* outputs a rel=follow or nofollow tag to circumvent google duplicate content for archives
* located in framework/php/function-set-avia-frontend.php
*/
if (function_exists(‘avia_set_follow’)) { echo avia_set_follow(); }/*
* outputs a favicon if defined
*/
if (function_exists(‘avia_favicon’)) { echo avia_favicon(avia_get_option(‘favicon’)); }
?><!– mobile setting –>
<?phpif( strpos($responsive, ‘responsive’) !== false ) echo ‘<meta name=”viewport” content=”width=device-width, initial-scale=1, maximum-scale=1″>’;
?><!– Scripts/CSS and wp_head hook –>
<?php
/* Always have wp_head() just before the closing </head>
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to <head> such
* as styles, scripts, and meta tags.
*/wp_head();
?>
</head>
<body id=”top” <?php body_class($style.” “.$avia_config[‘font_stack’].” “.$blank); avia_markup_helper(array(‘context’ => ‘body’)); ?>>
<div id=’wrap_all’>
<?php
if(!$blank) //blank templates dont display header nor footer
{
//fetch the template file that holds the main menu, located in includes/helper-menu-main.php
get_template_part( ‘includes/helper’, ‘main-menu’ );} ?>
<div id=’main’ data-scroll-offset='<?php echo avia_header_setting(‘header_scroll_offset’); ?>’>
<?php do_action(‘ava_after_main_container’); ?>
there was a thread here but closed – so i set up a new one.
you can see it here: http://www.wordpress-webdesign.org/grayscale/
because of having some troubles with the common css Solution (filter setting grayscale) i use the code Element to implement a little jquery script.
<script type="text/javascript"> // jQuery(".graytone img").css({"display":"none"); // On window load. This waits until images have loaded which is essential jQuery(window).load(function(){ // Fade in images so there isn't a color "pop" document load and then on window load jQuery(".graytone img").animate({opacity:1},500); // clone image jQuery('.graytone img').each(function(){ var el = jQuery(this); el.css({"position":"absolute"}).wrap("<div class='img_wrapper' style='display: inline-block'>").clone().addClass('img_grayscale').css({"position":"absolute","z-index":"998","opacity":"0"}).insertBefore(el).queue(function(){ var el = jQuery(this); el.parent().css({"width":this.width,"height":this.height}); el.dequeue(); }); this.src = grayscale(this.src); }); // Fade image jQuery('.graytone img').mouseover(function(){ jQuery(this).parent().find('img:first').stop().animate({opacity:1}, 1000); }) jQuery('.img_grayscale').mouseout(function(){ jQuery(this).stop().animate({opacity:0}, 1000); }); }); // Grayscale w canvas method function grayscale(src){ var canvas = document.createElement('canvas'); var ctx = canvas.getContext('2d'); var imgObj = new Image(); imgObj.src = src; canvas.width = imgObj.width; canvas.height = imgObj.height; ctx.drawImage(imgObj, 0, 0); var imgPixels = ctx.getImageData(0, 0, canvas.width, canvas.height); for(var y = 0; y < imgPixels.height; y++){ for(var x = 0; x < imgPixels.width; x++){ var i = (y * 4) * imgPixels.width + x * 4; var avg = (imgPixels.data[i] + imgPixels.data[i + 1] + imgPixels.data[i + 2]) / 3; imgPixels.data[i] = avg; imgPixels.data[i + 1] = avg; imgPixels.data[i + 2] = avg; } } ctx.putImageData(imgPixels, 0, 0, 0, 0, imgPixels.width, imgPixels.height); return canvas.toDataURL(); } </script>you can place it e.g before a partnerlogo element:

with :

here i gave to the partner logo element a custom css class : graytone
you can find that class in the script above on line (// jQuery(".graytone img").css({"display":"none");)
(how to activate the custom css for every alb element put in funktions.php :add_theme_support('avia_template_builder_custom_css');)there are some adjustements you can make (fade in speed, animation speed)
