Forum Replies Created
-
AuthorPosts
-
Not all Images are inserted in Enfold as
<img src=" …
a lot of them are only background-images f.e.: https://kriesi.at/themes/enfold-2017/elements/masonry/you can try this in child-theme functions.php if you need that class directly on the img tag itself
if you need it on the parent element tell me – then we can find that parent by another selector.
( i think even an each function is not neccessary)function add_class_to_images(){ ?> <script> (function($) { $('img').addClass('zoooom'); })(jQuery); </script> <?php } add_action('wp_footer', 'add_class_to_images');February 19, 2021 at 5:05 pm in reply to: Instagram missing in 'Social Media Share buttons' element #1282269hi Roger – sorry – not now for this post here- the topic on the other page is closed.
I created a solution for responsive case on that: https://kriesi.at/support/topic/issue-with-portfolio-grid-layout/#post-1281896see same example page on top: https://webers-testseite.de/excerpt/
take an enfold button – light transparent and give to those buttons a custom class: button-liner.avia-button-wrap.button-liner { width: 100%; float: none !important; height: 100%; display: block; overflow: hidden !important; } .avia-button-wrap.button-liner:before { display: inline-block; content: ""; position: relative !important; top: 8px; /*depending on your setting - like font-size etc. */ left: 0; width: calc(100% - 150px) !important; /*you know best how long this had to be for your text */ border-bottom: 2px solid #ccc; }-
This reply was modified 5 years ago by
Guenni007.
is it a manually set button – or you want the default read more link to like this?
See here for elegant-blog style on : https://webers-testseite.de/excerpt/
you had to adjust it to your selectors for your blog layout
.html_elegant-blog .avia-content-slider .read-more-link { padding-bottom: 0; display: inline-table; height: auto; width: 100%; } .html_elegant-blog .avia-content-slider .read-more-link:before { content: ""; position: absolute; top: 0; left: 0; height: calc(50% - 2px); width: 100%; border-bottom: 2px solid #999; z-index: -1 } .html_elegant-blog .avia-content-slider .read-more-link:hover:before { border-color: #f29811 !important; /* take your hover color for it */ } .html_elegant-blog .more-link { margin: 0; padding: 0 0 0 10px; text-align: right; font-family: Georgia !important; text-transform: uppercase !important; float: right; top: 0; width: auto; background-color: #fff; }function grid_layout_notfull(){ ?> <script> (function($){ $('.av-layout-grid-container.grid-notfull' ).wrap( '<div class="main_color notfullsize"></div>'); $('.notfullsize').css({"clear": "both", "width": "100%" , "float": "left" , "position": "static" , "min-height": "100px" }); $('.grid-notfull').css({"max-width": "1310px", "margin": "0 auto" , "padding": "0 50px"}); })(jQuery); </script> <?php } add_action('wp_footer', 'grid_layout_notfull');maybe a little child-theme functions.php snippet rules i a bit better.
https://kriesi.at/support/topic/grid-row-not-fullsize-how-to/#post-902770as mentioned in that post:
1) the notfullsize class added to the surrounding container gets the same settings as avia-section and the class main_color to have the same background-color
2) and the grid-notfullsize gets the setting of “container”this here f.e. is :

non breaking space
small no-break Space
non breaking hyphensee a list of them here: http://unicode.e-workers.de/entities.php
-
This reply was modified 5 years ago by
Guenni007.
and you inserted this?

____________ additional info _____________
on some inputfields this well known entity is working but after saving the whole page – the inserted entity is not seen anymore – allthough it has an effect on the frontend.
Editing a f.e. Heading again – these inserted entities are gone.to avoid this and to see in backend the usage of those little helpers i use that little plugin from Günter : https://github.com/KriesiMedia/enfold-library/tree/master/integration%20plugins/Enfold/Special%20Character%20Translation
you can extend that little list in the plugin by additional entities

i do change and add some entities on that replacement list f.e. ( i only use one #before and after the inserted code )
my replacement list looks this way:

after that i insert on the places f.e. #shy# for a softhypen.
this will be seen on backend – even after saving the post and on editing them again.February 19, 2021 at 12:09 am in reply to: Partner/Logo Elemente mit Link keine Transparenz mehr obwohl png #1282103can you try this in your quick css:
.main_color .avia-content-slider .slide-image { background: transparent !important; } .av-partner-fake-img { box-shadow: none; }February 18, 2021 at 11:33 pm in reply to: Filling the Header Area completely with a Photo Image #1282102sorry you had to wait till mods are here – no private content for my eyes!
February 18, 2021 at 11:45 am in reply to: Filling the Header Area completely with a Photo Image #1281960div.header_bg ( header background) is the last div container in the header container.
( It rules a lot of settings f.e. glassy header etc. pp)
click to enlarge

rule on that is:
.header_bg { background-image: url(/wp-content/uploads/privacy-1500x430.jpg); background-repeat: no-repeat; background-size: cover; opacity: 0.5; }but it depends on your header settings – and …
so more info about your header settings – then you can be offered more precise css code.PS : a good advice is always to get familiar with the developer tools of the browsers ( that dark thing in my image above ) it tells you a lot of DOM Structure and give you the concerning css Rules set.
in Addition – you can influence and test (virtually) by adding or changing css rules in developer tools.
Even you can test some of the jQuery snippets offered here on board.-
This reply was modified 5 years ago by
Guenni007.
February 18, 2021 at 12:49 am in reply to: Filling the Header Area completely with a Photo Image #1281899it would be helpful to know what kind of setting your header is set to.
Best is to see your site to give precise instructions.But on most cases the header_bg class is for that a good hint
maybe you give a different color to the time format:
.portfolio-new-meta .date-container { color: #999 !important; }________________
Sad it is closed –
PPS: the responsive case is not nice – so try:
@media only screen and (max-width: 767px) { .blog-samenvatting.grid-sort-container { display: flex !important; flex-flow: row wrap; justify-content: space-between; } .blog-samenvatting.grid-sort-container .grid-entry { flex: 1 1 100% !important; width: unset !important; margin: 0 0 50px !important; padding: 0; } .blog-samenvatting.grid-sort-container .grid-entry .inner-entry > div { width: 100% !important; } /**** these lines only if you like to have the image on top ******/ .blog-samenvatting.grid-sort-container .grid-entry .inner-entry { display: flex !important; flex-flow: wrap-reverse row; justify-content: stretch } #top .isotope-item.special_av_fullwidth .av_table_col .avia-arrow { top: 0%; } /****** remove it between these two comments if you are stisfied with image under the content *******/ }and switch at every px-value you like – maybe 989 is better
-
This reply was modified 5 years ago by
Guenni007.
February 17, 2021 at 4:30 pm in reply to: scroll hide AND transparent header, is this possible? #1281787it is in deed the fact that it is a bit transparent ( opacity: 0.95)
just change for those pages the .header_bg option with quick css:.home .header_bg { opacity:0.5; filter:alpha(opacity=50); }it maybe neccessary to have here an !important – but first try it without
by the way – i shift it this way:
function shift_extra_portfolio_meta(){ ?> <script type="text/javascript"> (function($) { $('.portfolio-new-meta').each(function() { $(this).next('.portfolio-entry').append($(this)); }); })(jQuery); </script> <?php } add_action('wp_footer', 'shift_extra_portfolio_meta');do not forget to get rid of this $markup in your code
Sorry – take the time only form $entry – i changed the snippet above so try for your needs:
function avf_portfolio_extra_mod($output, $entry) { $output = '<div class="portfolio-new-meta">'; $output .= '<div class="portfolio-read-more-link"><a href="'.get_permalink($entry->ID).'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow"></span></a></div>'; $output .= '<time class="date-container minor-meta updated">' .get_the_date("j. F Y", $entry).'</time>'; $output .= '</div>'; return $output; } add_filter('avf_portfolio_extra', 'avf_portfolio_extra_mod', 10, 2);if you like to have some binding words between the date shortcodes you had to insert a \ before the letters each – if they got a meaning on date format like a or t ( am/pm , time, etc.)
f.e. this:
.get_the_date("j\. F Y \a\\t G:i", $entry).see: https://wordpress.org/support/article/formatting-date-and-time/
don’t know why a double \\ must before the t – but that works
PS: it seems to slow down the site on loading if you got a lot of entries on that page.
Maybe a Mod knows a better way to insert the entry date to that place-
This reply was modified 5 years ago by
Guenni007.
First – does it realy work with $markup ? at the classes
what about this :
add_filter('avf_portfolio_extra', 'avf_portfolio_extra_mod', 10, 2); function avf_portfolio_extra_mod($output, $entry) { $output = '<div class="portfolio-new-meta">'; $output .= '<div class="portfolio-read-more-link"><a href="'.get_permalink($entry->ID).'" class="more-link">'.__('Read more','avia_framework').'<span class="more-link-arrow"></span></a></div>'; $output .= '<time class="date-container minor-meta updated">'.get_the_date("Y-m-d", $entry).'</time>'; $output .= '</div>'; return $output; }the point is to include the same relation to the entry ID as on permalink – you can do everything as format you like f.e.
.get_the_date("d. M Y", $entry).on default the month names are localized via General Setting Language of the page
by the way: thanks – nice use of that filter !
on my versions of Enfold : 4.7.6.4 and testing 4.8 beta – there are no options to show title – excerpt and read more !
no option to show post meta here – that is the reason for my question – where did you set to show the date?Only Chance to see it is to put in the excerpt field the shortcodes of the postmeta
is there a link you can make here public. only that image leads me to a different way it was generated than over the portfolio grid alb element.
Edit Ok – i didn’t see that there is : “special column layout – side by side” option. ( has this been around for a while?)
Next Question – how do you set the date to this element? because on default i got no date there.
Are these portfolio ALB generated – or set by classic editor. Do you have inserted here the post meta data?
If so – did you take the publishing date or the last modified date etc. ppmore input please
-
This reply was modified 5 years ago by
Guenni007.
Very important on flex modell use!
every element that is inside the flex-container is part of the rules – so no additional Heading inside a 1/1 container or a hr to have more space on top or bottom ( you can do this via padding ) should be inside the flex container.Everything stayes the same but you have instead of:
jQuery(window).load(function(){that:
jQuery(window).on('load', function () {do not forget to clear all browser cache and to refresh (if used) the merged files in enfold (see performance tab in enfold options)
See here in the first yellow frame: https://api.jquery.com/load-event/
See here:
https://kriesi.at/support/topic/magnific-popup-doesnt-work-anymore/#post-1277163
if you got other scripts with load or click event – replace them all by .on(‘load’,… and .on(‘click’, …
PS: it is not neccessary to load this script in the header area – so wp_footer is good too.maybe a jQuery ( no SEO influence on that) solution will be ok for you –
try this in child-theme functions.php:Edit: ok i see you began to insert manually – what is best for SEO Purpose too.
Have you thought about editing the first of the 1/4 columns of each row so that it is set to no-margin?
Unfortunately, the first in a row is always assigned the default value: “space between columns”.Be carefull to do this each time – when you change positions in your layout ( by moving the columns e.g.)
it is because of this rule in enfold settings:
.responsive .av_one_fourth.first + .av_one_fourth.flex_column_div { margin-left: 4% }so you got two options here – either you think of that to edit each first column in that layout – or you overwrite it by:
( and that is much more comfortable ).responsive #top .four-in-a-row .flex_column { margin-left: 0 !important }-
This reply was modified 5 years ago by
Guenni007.
If you have seen that effect now – please tell – because i want to remove the images on copyright reasons
Edit: done – i used now some images from pixabay.
2. pictures have 0 padding & margin. BUT have a 50px left and right padding to the parent container.(again exactly like the website I mentioned above)
i do not see that on the image in your example page – as on my test page too
My setup above – go and open the 1/4 column and set the other image as background-image – with background-repeat: contain !
now you will have the additonal css:
.four-in-a-row .entry-content-wrapper .flex_column:hover img { opacity: 0; transition: opacity 1s ease; } .four-in-a-row .entry-content-wrapper .flex_column img { opacity: 1; transition: opacity 1s ease; }and if you like to have your own cursor type – like your example-page replace that one rule with
.four-in-a-row .entry-content-wrapper .flex_column:hover img { opacity: 0; transition: all 1s ease; cursor: url(/wp-content/uploads/tile-hover.png) 60 12,auto; }see first image in test page
Then you can link the full 1/4 column to the team member page.so more and precise input for those who want and could help.
-
This reply was modified 5 years ago by
-
AuthorPosts
