Forum Replies Created
-
AuthorPosts
-
this might help –
that snippet comes to your child-theme functions.php:function your_custom_script(){ ?> <script> // replace that line here by your script code </script> <?php } add_action('wp_head', 'your_custom_script');
but How it is ultimately set also depends on whether it needs any requirements. E.g. the user script needs jQuery – then this must be loaded first before your user script is inserted.
May 27, 2023 at 6:34 pm in reply to: How to reduce the height of a specific text block using unique ID #1408798Please read this first: But even if it is not set by you in a surrounding container – there will be some automatic parent containers anyway. One of them is main.content. with padding : 0 50px
as a parent container to your #your-unique-id you can’t influence it for lack of css selectors regarding parent containers. The ID you set goes to the direct parent of the avia_textblock class.
The auto p function will insert p-tags – these will have top/bottom margin of: 0.85em
This could be set to 0 by your ID:#your-unique-id p { margin: 0; }
so – even if you use a placed parent container (f.e a 1/1 column) for that text-block and give a custom ID or Class to that Element then it wouldn’t be of any use to you. ( only color-section is usefull – but as a full width element it will not allow sidebares besides )
For that post influence it by the postid/*** customize to your postid ***/ #top.postid-43042 .content { padding: 0; }
you can close this now – but this was not the first shortcode inside a code tag i posted. So I was quite surprised by this reason.
May 27, 2023 at 5:17 am in reply to: Display posts that are assigned to category1 AND category2 #1408748i guess he wants to show only posts that are in category a and b – The intersection of the two categories –
only posts that are inside both categories ( a && b)maybe there could be a filter solution in future releases to have a logical relation between the “link” f.e. in:
av_blog blog_type='taxonomy' link='category,4,7' …
this is a multiple selection of two categories but relation is on default an “OR” – maybe a checkbox at that element or as mentioned a filter solution will force an “AND” relation.May 26, 2023 at 6:05 pm in reply to: How to reduce the height of a specific text block using unique ID #1408719depends on where the text-block is? – because f.e. color-sections got a min-height setting of 100px
have you used this: https://kriesi.at/support/topic/social-media-icons-in-footer-8/#post-1397164
have you added the css in quick css ( otherwise the icons will be : as list under each other )
#footer .widget ul.social_bookmarks { display: inline-flex; gap: 0px 10px; } #footer .widget ul.social_bookmarks li { border: none }
May 26, 2023 at 2:45 pm in reply to: How to add a full width button of logo images to every page? #1408688but why does it break the board soft ( this code inside codetag) but on my wordpress installation inside child-theme functions.php not ?
but why does it break the board soft ( this code inside codetag – as you mentioned it ) but on my wordpress installation inside child-theme functions.php not ?
sorry – double post – see next
Sorry for late reply – i did it now
May 25, 2023 at 8:51 pm in reply to: Backgroundphotos in “grid line” (Rasterzeile) on tablets don´t adapt size #1408587Bei iPad Quer hast du dann die Grid-Zellen nebeneinander?
Das Problem bei dem Konstrukt ist ja das der Content in der anderen Grid-Zelle die Höhe bestimmen muß – ansonsten würde der in das Overflow geraten, oder abgeschnitten werden.
Daher funktioniert das nur entweder wenn wir im Responsiven Fall sind ( also jede Grid-Zelle die 100% füllt) oder in seltenen Fällen der Content in der anderen Zelle sehr klein ist, sodaß man die Zelle mit dem Hintergrund bestimmen lassen kann wie hoch die Grid-Row ist.Schau dir nochmal die Beispielseite an. Unten ist der o.a. Fall : wenig Content
bei einer 1/2 Grid-Cell hast du dann auch nur die Halbe Höhe um ein “responsives” Verhalten zu erzwingen.
Mit fixed geht dies nich ( und schon garnicht mit parallax ) Fixierte Elemente befinden sich quasi nicht im ElternContainer – daher ist die basis eines
background-attachment : fixed die 100% screenweite.Für den Fall Grid-Cells nebeneinander habe ich eine weitere Klasse gesetzt:
_____________
With iPad landscape you have the grid cells next to each other?
The problem with the construct is that the content in the other grid cell must determine the height – otherwise it would get into the overflow, or be cut off.
Therefore this only works if we are in the responsive case (i.e. every grid cell fills 100%) or in rare cases the content in the other cell is very small, so you can let the cell with the background determine how high the grid row is.Have a look at the example page again. Below is the above case : little content
with a 1/2 grid-cell you have only half the height to force a “responsive” behavior.
With fixed this is not possible ( and certainly not with parallax ) Fixed elements are not in the parent container – therefore the base of a
background-attachment : fixed is the 100% screen width.For the case of grid-cells next to each other I set another class:
@media only screen and (min-width: 990px) { #top .flex_cell.responsives-verhalten.nebeneinander { background-attachment: scroll; padding: 0 !important } #top .flex_cell.responsives-verhalten.nebeneinander .flex_cell_inner { height: calc(56.25vw / 2) !important; } }
_____________
May 25, 2023 at 3:53 pm in reply to: Accordion – do not close previous tab when opening new one #1408540Where should the content be shown if another tab is open?
Besides each other – and you scroll then left/right?May 25, 2023 at 3:42 pm in reply to: on Mega Menu show in front of list points the featured image #1408539All other buttons work – if i click “Replies Created” :
May 25, 2023 at 8:37 am in reply to: Backgroundphotos in “grid line” (Rasterzeile) on tablets don´t adapt size #1408496leider ist deine Seite ja nicht online erreichbar, es wird nur eine “Coming Soon” Seite angezeigt.
Wenn du allerdings auf diese Demoseite (Link) abzielst, dann ist es auch dort nicht so, dass die Bilder responsive sein können. Der Grund ist, dass es eben keine Bilder sondern Hintergrundbilder sind.
( PS beim Einsetzen der Hintergrund-Bilder darauf achten, dass du auch die Vollauflösung einsetzt und kein 300px Bild )Man könnte das zwar erreichen ( am leichtesten dadurch, das zunächst alle Hintergrundbilder die gleichen Dimensionen – zumindest aber die gleichen Seitenverhältnisse aufweisen). Den Hintergrund dann auf Scroll zusetzen ist ratsam wie es Ismael vorgeschlagen hat, denn ein Cover Bild müsste ja die gesamte Screenhöhe ( nicht die Containerhöhe ) abdecken.
Ein Hintergrundbild auf cover gesetzt ist dann “responsiv”, wenn die Containerhöhe mit dem Seitenverhältnis des Hintergrund-Bildes correliert.
Auf meiner Beispielseite haben die Bilder ein 16/9 Seitenverhältnis ( 1920/1080) haben also bei voller Breite (100vw) eine Höhe von 56.25vw !_________
unfortunately your page is not available online, only a “Coming Soon” page is displayed.
However, if you point at this demo page (Link) , then it is also not the case that the images can be responsive. The reason is that they are not images but background images.
( PS when inserting the background images make sure that you also use the full resolution and not a 300px image ).You could achieve this (the easiest way is, that all background images have the same dimensions – but at least the same aspect ratio). Setting the background to scroll is advisable as Ismael suggested, because a cover image would have to cover the whole screen height (not the container height).
A background image set to cover is “responsive” if the container height correlates with the aspect ratio of the background image.
On my example page the images have a 16/9 aspect ratio ( 1920/1080 ) so at full width ( 100vw ) they have a height of 56.25vw !see ( with 989px breakpoint):
https://webers-testseite.de/gridrow-layout-with-fixed-bg/try to set the ul background – it is hard to test on developer tools because there is a reload needed to see it.
#top .avia-slideshow-inner { background-color: #000; }
if you need a background-image on that use:
#top .avia-slideshow-inner { background-image: url(https://bastiontechnologies.com/wp-content/uploads/2023/02/slider-systems-engineering-1000x375-1.jpg); background-size: cover; background-repeat: no-repeat; background-position: top left; background-color: #000; }
and what do you expect it should look like
open f.e. :https://www.stilecatalini.it/portfolio-articoli/ventuno-sport-fisherman/
and compare the behavior with that of the light box. Where is a difference (except the height width of the page) between them that bothers you?
if your footer has more than 100% screen-height or f.e. 90% screen-height – how would you show all your footer content – without scrolling?
yes – of course
First : put this to your child-theme functions.php:
add_filter('avf_show_curtains_media_option', '__return_true');
I can’t see your page, but it makes sense for the footer to scroll in responsive case.
So the curtain effect is not diasabled ( only for stretched Layout available ) but if the footer will be more than 80% of screen-height it will scroll.just for info:
First : put this to your child-theme functions.php:
add_filter('avf_show_curtains_media_option', '__return_true');
after doing that there will be a second option to set: “Select to switch back to scroll footer content with page when footer height exceeds selected limit.”
by the way – the curtain effect works very well – and i think you can remove the info about beta
add this to your child-theme functions.php:
function custom_avf_post_css_create_file( $create ){ return true; } add_filter( 'avf_post_css_create_file', 'custom_avf_post_css_create_file', 10, 1 );
see f.e. a portfolio masonry:
https://webers-testseite.de/portfolio-masonry/i set the popup in child-theme functions.php to:
( that is just for that page-id on my code )function add_modal_popup_einstellungen() { if(is_page(42989)){ ?> <script type="text/javascript"> window.addEventListener("DOMContentLoaded", function () { (function($) { $('.av-masonry-entry').on('click', function(e){ e.preventDefault(); }); $('.av-masonry-entry').magnificPopup({ removalDelay: 700, type:'iframe', midClick: true, }); $(document).on('click', '.popup-modal-dismiss', function (e) { $.magnificPopup.close(); }); })(jQuery); }); </script> <?php } } add_action('wp_footer', 'add_modal_popup_einstellungen');
some css ( in this case the opacity is set to 0.97 that you can see it is a lightbox – if it is 1 – it’s nearby your example page from above.
#top.page-id-42989 .mfp-bg { background-color: #FFF; opacity: 0.97; } #top.page-id-42989 .mfp-iframe-scaler { width: 100%; height: 80vh; overflow: hidden; } #top.page-id-42989 .mfp-iframe-holder .mfp-close, #top.page-id-42989 .mfp-image-holder .mfp-close { color: #000; }
if this is what you need: https://www.11-76.com/themes/giant/index-SINGLE-IMAGE.html#
and you like to style the new content like a page – why not use a page? – those “pages” should be only set to template blank – no header – no footer.
or – if you like to use it with a portfolio grid ( or a masonry with portfolios ) – you can change that opening behavior to show the linked portfolio in a lightbox ( modal window ) and not to open a new page. The trick is then to not make the look and feel like a lightbox ( but to show as white full overlay ) with just a close button on that.
i’m just participant as you – so no private content could be seen by me.
but maybe the edited tip will help you more than the inline-popup solutionI have to honestly confess here that I haven’t read the entire content of the topic, but if with a little thinking you don’t give the team member element, but a color-section (or grid-row) an ID and give it the class mfp-hide, the color-section should be able to appear as similar in a lightbox.
if this is not enough – why don’t you open a page in a lightbox from your site.
Place that button and insert a manual link with the url of your wanted pages with addendum:?iframe=true
see here https://webers-testseite.de/my-website/
PS: If it is an external page link – you must have allowed on that external link to be running in an iframe.
for that i allowed it via htaccess by:Header set X-Frame-Options "ALLOW-FROM https://webers-testseite.de/"
but on internal pages ( X-Frame-Options “sameorigin” ) this is not needed
ok – I thought – inspired by the ajax search results – there would be an easy way to do this.
so don’t put any work into it – obviously no one else has been interested yet.ok – if you do not see it in your text alb element – but it is on nearly all websites i inspect the DOM – that script ( see screenshot of kriesi.at above ) is present.
And see here for your testpage from private area:
Edit it seems that it comes from a browser plugin ( password-manager ) – but that is a nogo. For all I care on the called page – but to insert it within the content of a page … headshakebtw. browsing on chrome :
<script type="text/javascript" src="chrome-extension://fooolghllnmhmmndgjiamiiodkpenpbb/injectedPasswordless.js"></script>
so try not on a local install – try on a live site.
look here on board for the DOM :this might not be a matter of enfold – because a lot of website do have this script – but maybe one of us has info what it does.
On textblock i looks this way:
Each time when i switch between visual and text mode there is another line:
-
AuthorPosts