Forum Replies Created
-
AuthorPosts
-
you have to create a folder in your child-theme folder – call it “shortcodes”
put in the columns.php of josue in that folder and
place this to your child-theme functions.php:add_filter('avia_load_shortcodes', 'avia_include_shortcode_template', 15, 1); function avia_include_shortcode_template($paths) { $template_url = get_stylesheet_directory(); array_unshift($paths, $template_url.'/shortcodes/'); return $paths; }
the code is good – but the second logo is missing.
How did you insert the second logo ?i prefer this method via functions.php of child-theme
function second_logo($logo) { $logo .= '<strong class="logo second-logo"><a href="url2" target="_blank">' ; $logo .= '<img src="url to you second logo" />'; $logo .= '</a></strong>'; return $logo; } add_filter('avf_logo_final_output', 'second_logo');
afterwards you can set this second-logo to display: block with:
.header-scrolled .second-logo > a > img { display: block !important; }
-
This reply was modified 8 years, 3 months ago by
Guenni007.
March 15, 2017 at 1:07 pm in reply to: Clearing issue in mobile 1/5th columns with 50% width #761384ok – so geht es ja jetzt
PPS:
setze mal in quick css:
#mobile-advanced { background-image: url("http://ahlers-vogel1.x-production.com/wp-content/uploads/2016/10/Ahlers-Vogel_Logo.png"); background-position: left top; background-repeat: no-repeat; background-size: 40% auto; padding: 10% 0 !important; }
und schau dann in das mobile menu rein
eventuell nimmt man da auf Grund deines grauen Hintergrundes ein anderes Logo ( ganz Weiss vielleicht oder composite)your welcome
March 15, 2017 at 11:05 am in reply to: Clearing issue in mobile 1/5th columns with 50% width #761296bitte nichts mehr ändern: und folgenden code einfügen (den rest bitte löschen)
@media only screen and (min-width: 320px) and (max-width: 990px) { body .column-top-margin { margin-top: 0; } div .av_one_fifth { margin-left: 2% !important; width: 44%; clear: none !important } div .av_one_fifth:nth-child(2n+1) { clear: both !important; } }
-
This reply was modified 8 years, 3 months ago by
Guenni007.
March 15, 2017 at 11:01 am in reply to: Clearing issue in mobile 1/5th columns with 50% width #761287immer genau lesen – ich war ja von den Einstellung individuelle höhe und kein Abstand ausgegangen – bei dir ist es jetzt:
#top .av_one_fifth { width: 18%; } @media only screen and (min-width: 480px) and (max-width: 990px) { #top .av_one_fifth { clear: none !important; width: 48% !important; } #top .av_one_fifth:nth-child(2n+1) { clear: both !important; } }
die no-margin anweisung ist auch dann hinfällig gewesen weil du ein top-margin definiertest.
was ich mit Einstellungen meine: die erste 1/5 tell Spalte bestimmt das Verhalten der 4 nachfolgenden. Wenn du jetzt von einem 4 Spalter auf einen 5 Spalter wechselst, springen die 1. Elemente der folgenden Reihen als 5. Element eine Reihe höher. Und das ursprünglich 2. 1/5tel springt auf den ersten Platz. Diese Columns sind aber per default auf equal height und space eingestellt. Daher musst du beim Ändern auf 5 Spalter alle ersten Spalten die Einstellungen dort prüfen.
headings are Lato and text is Open Sans
March 15, 2017 at 9:25 am in reply to: Fontello Icons showing up as squares (and asian characters). #761239can you give me a link too – i’m participant as you but with over 1600 postings a bit skilled for enfold.
on your own site i can’t find some difficulties.March 15, 2017 at 9:08 am in reply to: Clearing issue in mobile 1/5th columns with 50% width #761223hast du einen direkt link dahin – ich finde die 5 spalter nicht
ich hatte ganz bewußt auf diese Spanne gestellt. Wenn es zu klein wird um gesehen zu werden ist es auch doof oder?
480px ist die Handy Querformatmarke.
Wenn du auch auf dem Handy im Hochformat das haben willst musst du die untere Marke auf 320px stellen
oder gar noch kleiner einstellen – ein Link wäre genial, weil dann kann man optimieren.
ZB würde ich dann das padding links/rechts wohl verringern Mobilen Fall ( du hast das generell auf 15% – finde ich recht üppig bei 320px breite.und btw. wenn du von 4 auf 5 Spalten stellst musst du jedesmal leider auf die erste Spalte gehen um dort die Parameter neu einzustellen.
(individuelle Höhe, und kein Platz zwischen den Spalten – denn ich glaube per default ist das auf equal height und space gestellt)March 15, 2017 at 12:54 am in reply to: Clearing issue in mobile 1/5th columns with 50% width #761063bei 5 er columns geht es ähnlich
wie gesagt ich habe mal auf der Testseite das so angelegt : 1/5 dann individuelle Höhe (sonst ist das auf display: table-cell) und keine Zwischenräume (die lege ich selbst fest.dann :
#top .no_margin.av_one_fifth { width: 18%; } #top div .no_margin { margin-left: 2% !important; margin-top: 0; } @media only screen and (min-width: 480px) and (max-width: 990px) { #top .no_margin.av_one_fifth { clear: none !important; width: 48% !important; } #top .no_margin.av_one_fifth:nth-child(2n+1) { clear: both !important; } }
mit den Abständen kannst du ja was spielen.
wichtig ist eben: kein clearing über die columns bis auf (2n+1)das ist noch nicht ganz perfekt, weil da jetzt links rechts ein anderer Abstand ist.
man könnte dann für #top .no_margin.av_one_fifth.first was setzen etc. – aber so sieht es auch schon besser ausMarch 15, 2017 at 12:14 am in reply to: Clearing issue in mobile 1/5th columns with 50% width #761058ach schon mal ne Lösung für die Footer Problematik (auch hier sind es ja 5 Säulen) du hast dort die Schrift verkleinert – brauchst du so garnicht.
Du kannst aber auch hier auf 2 2 1 gehen
du siehst die media querries pixelwerte kannst du ja dann deinen Bedürfnissen anpassen.@media only screen and (min-width: 480px) and (max-width: 989px) { #footer .av_one_fifth { margin-left: 0% !important; width: 50% !important; } .responsive #footer div .av_one_fifth:nth-child(2n+1) { clear: both !important; } }
March 15, 2017 at 12:03 am in reply to: Clearing issue in mobile 1/5th columns with 50% width #761056hast du eine seite wo auch 5 sind?
March 14, 2017 at 11:41 pm in reply to: Clearing issue in mobile 1/5th columns with 50% width #761038https://webers-testseite.de/kokon/fifth-columns/
i only can help best if i see your page
these are 1/5th columns with image and text under it. The columns are from individual height and with no space between
March 14, 2017 at 10:50 pm in reply to: Clearing issue in mobile 1/5th columns with 50% width #761014what is the thing you like to have? 2 2 1 or maybe 1 2 2 (1 in center above)
the thing is here to work with nth:child options and clearingsis there a link for a participant as me?
March 14, 2017 at 10:42 pm in reply to: Fontello Icons showing up as squares (and asian characters). #761013you lost something – try this in htaccess file: Link
<FilesMatch "\.(ttf|otf|woff)$"> <IfModule mod_headers.c> Header set Access-Control-Allow-Origin "*" </IfModule> </FilesMatch>
March 14, 2017 at 10:39 pm in reply to: Automatic Resized Upload-Images become more KB than the original #761007a bit offtopic but in the same direction:
Wordpress itself got an image quality tool – this is in a good meaning but if the image creator knows his job excellent sometimes the 90% jpg is bad quality but more space. To avoid this from wp induced process add this to functions.php child-theme:add_filter( 'jpeg_quality', create_function( '', 'return 100;' ) );
by the way placing the svg to the image box – give the image box a custom class and f.e. svgimg
than place in your quick css:
.svgimg .avia_image { height: auto; width: 350px; }
or 100%
on svg you can open the svg file in a good text editor (sublime text on Mac OSX or notepad++ on PC)
on top of your svg there is some code like this:
<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="110 33 400 120" enable-background="new 110 33 400 120" xml:space="preserve">
you can manually enter : preserveAspectRatio=”xMinYMin meet” (just before xml:space so there is:
<svg version="1.1" id="Ebene_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="110 33 400 120" enable-background="new 110 33 400 120" preserveAspectRatio="xMinYMin meet" xml:space="preserve">
this code offers you the influence how the svg shrinks. xMinYMin means it goes to the top left corner
if you like to center the logo in x-direction : xMidYMin means it centers on shrinking in x-direction but it goes to top etc
xMaxYMax – goes to right bottom corner of the surrounding container.well with the plugin above and my “image.php” i can use the alb element. And only by adding a custom class i reach the possibility to add that inline svg.
My idea now is to insert an if clause to the image alb ( if mime type is svg than custom class of image is …)
on logo case i often use this:
function first_logo($logo) { $logo .= '<strong class="logo first-logo"><a href="url1">' ; $logo .= file_get_contents("path to svg logo"); $logo .= '</a></strong>'; return $logo; } add_filter('avf_logo_final_output', 'first_logo');
to place an inline svg as logo.
see what happens on hovering the svg!
hm i changed it in image.php to: (from line 437)
$markup_url = avia_markup_helper(array('context' => 'image_url','echo'=>false, 'custom_markup'=>$meta['custom_markup'])); $markup = avia_markup_helper(array('context' => 'image','echo'=>false, 'custom_markup'=>$meta['custom_markup'])); $output .= "<div class='avia-image-container {$class} ".$meta['el_class']." ".$this->class_by_arguments('align' ,$atts, true)."' $markup >"; $output .= "<div class='avia-image-container-inner'>"; if($link) { $output.= "<a href='{$link}' class='avia_image' {$blank}>{$overlay}<img class='avia_image ".$meta['el_class']." ' src='{$src}' alt='{$alt}' title='{$title}' $markup_url /></a>"; } else { $output.= "{$overlay}<img class='avia_image ".$meta['el_class']." ' src='{$src}' alt='{$alt}' title='{$title}' $markup_url />"; } $output .= "</div>"; $output .= "</div>"; }
you can see result here: https://webers-testseite.de/kokon/3164-2/
this is an image alb element in a 1/2 container.
The plugin (svg support) – if it comes to an img tag with class style-svg it replaces the whole img container with the svg code ! nice !:lol – yes
the reason : there is an svg plugin which enables all in wordpress what svg must have. in dashboard media the grid and the list overview is with svg preview and the clue : you can embed svg in the normal and advanced layout editor. This is allready possible – but the svg is still an img tag.
if you give a custom css class to it (standard is style-svg) it places not an image tag but the svg inline code.
This has a lot of advantages.
So in tiny mce editior this is simple to set the class to the image. But on alb image not.how does the parent container get the custom class?
for me it will be ok if i put a new shortcode image.php in child theme – but i do not see where the custom class in the code comes from.
ah – and by the way the logo in the hamburger menu is a home link with image instead of text.
For the overlay we need a container surrounding the whole thing which could be adressed well.
So best will be to make a copy of header.php in the child-theme folder.
Open it and insert that new container just after the opening wrap_all container to have than:<div id='wrap_all'> <div class='mega-bg'></div>
so we can have than in quick css :
.mega-bg { width:100%; height:500%; position:absolute; display:none; z-index:0; transition: all 1s linear 0; opacity: 0 } .av-burger-overlay-active .mega-bg { width:100%; height:500%; background:#fff; position:absolute; display:block; z-index:500; transition: all 1s linear 0; zoom: 1; filter: alpha(opacity=80); opacity: 0.8; }
you see here that mega-bg container is just a “super container ” and in normal mode with opacity zero !
when hamburger menu opens there is an extra class : .av-burger-overlay-active.
we can now use this to change opacity and background-color (you can use here every color you like even#000)here is the rest with some comments:
/******** some logo adjustments *************/ .main_menu .avia-menu,#header_main_alternate,.fallback_menu { display:block; float:right; } .responsive #top #wrap_all .container { max-width:95%; width:95%; } .responsive #top #wrap_all #header { background-color:#fff; opacity:1; position:fixed; width:100%; } .responsive #top .logo { float:left; position:absolute; top:50%!important; transform:translateY(-50%); width:65%; } #menu-item-burger > a { padding-right:8px!important; } #advanced_menu_toggle { display:none!important; } /******** if you like to have infront of your menu-items some icons. *************/ #av-burger-menu-ul li#menu-item-437 a .avia-menu-text::before {content: "\e821 \00a0";font-family: entypo-fontello; color: #0088BD} #av-burger-menu-ul li#menu-item-438 a .avia-menu-text::before {content: "\e83c \00a0";font-family: entypo-fontello; color: #0088BD} #av-burger-menu-ul li#menu-item-439 a .avia-menu-text::before {content: "\e857 \00a0";font-family: entypo-fontello; color: #0088BD} #av-burger-menu-ul li#menu-item-440 a .avia-menu-text::before {content: "\e80b \00a0";font-family: entypo-fontello; color: #0088BD} #av-burger-menu-ul li#menu-item-441 a .avia-menu-text::before {content: "\e805 \00a0";font-family: entypo-fontello; color: #0088BD} #av-burger-menu-ul li#menu-item-589 a .avia-menu-text::before {content: "\e80e \00a0";font-family: entypo-fontello; color: #0088BD} #av-burger-menu-ul li#menu-item-703 a .avia-menu-text::before {content: "\e81e \00a0";font-family: entypo-fontello; color: #0088BD} /********. some changings of hamburger menu. **********/ .av-burger-overlay { box-shadow: -2px 0 10px #bbb; left: auto; max-width: 400px; } .av-burger-overlay-inner { background: #fff url("url to a background image") no-repeat scroll 0 0 / cover ; } .av-burger-overlay-active #top .av-hamburger-inner, .av-burger-overlay-active #top .av-hamburger-inner::before, .av-burger-overlay-active #top .av-hamburger-inner::after { background-color: #0088BD !important; } #av-burger-menu-ul li a { color: #000 !important; } #av-burger-menu-ul li a .avia-menu-text { text-shadow: 1px 1px 3px #333; } #av-burger-menu-ul li a:hover .avia-menu-text { color: #0088BD; font-weight: 400; } /******** if you don't like to have fullscreen hamburger active menu when under a given screenwidth *************/ @media only screen and (max-width: 880px) { .av-burger-overlay { box-shadow: none; left: 0 !important; max-width: 100% !important; } }
you mean the whole with overlay of content?
Or only the solution that hamburger works in all cases?hm – i thought he liked to have the hamburger menu for both cases : wide screens and in responsive case
this is possible : see here Link
make the browser window smaller and see that hamburger is allways in action.
(There are some other changings on Hamburger here too – (not 100% width etc – overlay of content etc)you mean – you have a shrinking header – and if shrinking of header has is finished – you want a different logo than ! ?
i need more input.
you have choosen the sticky header on Enfold Options Dialog – and now ?the sticky option is a globaly one – so how do you get pages with and some without sticky behavior?
As an advanced layout builder element there is a 100% (to the outer container) definition. So no need to say something.
But if you insert the svg (as img) via standard editor you can change the sizes in text mode of tinymce.well i think the code snippet above should only do the job for admin area – dashboard media preview.
btw. there is a spacebar missing between td and . media-icon.
but i think the code could be a bit changed to:function fix_svg_thumb_display() { echo '<style type="text/css"> td .media-icon img[src$=".svg"] { width: 100% !important; height: auto !important; } </style>'; } add_action('admin_head', 'fix_svg_thumb_display');
showing the svg attachment isn’t the backend site it is in frontend (wp_head influenced)
function fix_svg_attachment_display() { echo '<style type="text/css"> .attachment img[src$=".svg"] { width: 100% !important; height: auto !important; } </style>'; } add_action('wp_head', 'fix_svg_attachment_display');
you did notice that you could drag & drop alb elements to the tab content field?
-
This reply was modified 8 years, 3 months ago by
-
AuthorPosts