Forum Replies Created
-
AuthorPosts
-
@steviger :
on the method above you had to think of that every page concerning to mee is subpage of mee. etc.or if you have not too much pages and subpages etc.
you can give to them a tagyou can activate for all pages / posts the tag option by:
// add tag support to all posttypes function tags_support_all() { register_taxonomy_for_object_type('post_tag', 'page'); } add_action('init', 'tags_support_all'); function tags_support_query($wp_query) { if ($wp_query->get('tag')) $wp_query->set('post_type', 'any'); } add_action('pre_get_posts', 'tags_support_query');you now have the opportunity to give each post / page a tag (avoid using two of those tags )

function av_change_logo($logo){ if(has_tag('mee')){ $logo = "/wp-content/uploads/2021/08/logo_MEE.png"; } elseif(has_tag('vtv')){ $logo = "/wp-content/uploads/2021/08/logo_VTV.png";} elseif(has_tag('jong')){ $logo = "/wp-content/uploads/2021/08/logo_JongLeren.png";} elseif(has_tag('xtra')){ $logo = "/wp-content/uploads/2021/08/logo_Xtra.png";} elseif(has_tag('mooi')){ $logo = "/wp-content/uploads/2021/08/logo_Mooi.png";} elseif(has_tag('jess')){ $logo = "/wp-content/uploads/2021/08/logo_JESS.png";} return $logo; } add_filter('avf_logo','av_change_logo');I think that’s how it should work.
You just have to remember to set the tag for the pages you want to create.and it is definitly two columns not two color-sections?
if it is two columns ( guess 1/1) – why don’t you drag&drop the content from the second column to the first and get rid of that second column?
Or in other words – why is it important to preserve here two columns?by the way – a following column got a class: column-top-margin
and the concerning rule is set to –body .column-top-margin { margin-top: 50px; }to change that on general seem to be no good idea – so give a custom-class to f.e: the parent element ( color-section) or to that following column
and overwrite that rule with the additional class.but be carefull – this is casesensitive so noLightbox – not nolightbox.
But if it works – i guess you used the right writing.did those pdf links realy open in a lightbox ?
on /js/avia-snippet-lightbox.js you find that exclude instruction:
exclude : '.noLightbox, .noLightbox a, .fakeLightbox, .lightbox-added, a[href*="dropbox.com"]'so give to one of the parents a custom-class : noLightbox
-
This reply was modified 4 years, 4 months ago by
Guenni007.
Btw all social icons do have their own links per organisation (page)
if it is in your widget only ( not the top-heading ) i would install something like: restrict widget and put the different social media links into different widgets.
( or maybe better: https://wordpress.org/plugins/widget-logic/ )first i would try to have this tree function to have all pages – that are subpages – the same logo
f.e:
function is_tree($pid){ global $post; $ancestors = get_post_ancestors($post->$pid); $root = count($ancestors) - 1; $parent = $ancestors[$root]; if(is_page() && (is_page($pid) || $post->post_parent == $pid || in_array($pid, $ancestors))){ return true; } else{ return false; } }; function av_change_logo($logo){ if (is_tree(178)) { $logo = "/wp-content/uploads/2021/08/logo_MEE.png";} elseif (is_tree(aaa)) { $logo = "/wp-content/uploads/2021/08/logo_VTV.png";} elseif (is_tree(bbb)) { $logo = "/wp-content/uploads/2021/08/logo_JongLeren.png";} elseif (is_tree(ccc)) { $logo = "/wp-content/uploads/2021/08/logo_Xtra.png";} elseif (is_tree(ddd)) { $logo = "/wp-content/uploads/2021/08/logo_Mooi.png";} elseif (is_tree(eee)) { $logo = "/wp-content/uploads/2021/08/logo_JESS.png";} return $logo; } add_filter('avf_logo','av_change_logo');you had to replace the aaa – eee with the page id’s.
no e-mail here on my account – send again please
all social icons do have consistent link – if they are present.
or could it be that on page1 there is a facebook link different than on page2 etc.with logo you can do it this way :
add_filter('avf_logo','av_change_logo'); function av_change_logo($logo){ if( is_page(21) ) { $logo = "http://www.domain.com/wp-content/uploads/logoforpage21.jpg"; } elseif ( is_page( array( 42, 54, 6 ) ) ) { $logo = "http://www.domain.com/wp-content/uploads/logoforpage22.jpg"; } elseif ( is_page() && !is_page(1307) ) { $logo = "http://www.domain.com/wp-content/uploads/logoforpage23.jpg"; } return $logo; }border top color is just css with classes on #top ( .page-id-123 )
6 different pages with each different headers?
if not – and these 6 pages will have the same header.
you can have a page array on the code above instead of :if ( is_front_page() ) {August 30, 2021 at 3:40 pm in reply to: Please Explain SVG Sections – Problem with two colour sections #1318987ruft mich doch bitte nochmal an – da kann ich euch sagen wie ich drauf kam.!
August 30, 2021 at 2:50 pm in reply to: Please Explain SVG Sections – Problem with two colour sections #1318982ok – if you can not post here a public link to the concerning page – leave a link in private content – but then you had to wait til a mod is here to look for it.
but there had to be a fault in your installation i guess. Because i can set every svg i like with even every color-section setting.( You didn’t have any child-theme alb elements on that installation? It also happened to me that I forgot to update the user-defined alb elements as well.
August 30, 2021 at 1:35 pm in reply to: Please Explain SVG Sections – Problem with two colour sections #1318964first of all : i think 5px is very small – you will hardly see any difference.
Did you choose for your svg divider that gray from the first ( adjacent ) color-section?
( Divider Color – Select the color for this divider here … )
Is there a page we can inspect?… The better solution:
ok – but style the header options for all the other pages – with custom height f.e. 80px !
then put this to your child-theme functions.phpfunction avf_header_setting_filter_mod($header) { if ( is_front_page() ) { $header['bottom_menu'] = 'header_bottom_menu_active'; $header['header_layout'] = 'logo_center bottom_nav_header menu_right'; $header['header_sticky'] = 'header_sticky'; $header['header_shrinking'] = 'header_shrinking'; $header['header_stretch'] = 'header_stretch'; $header['header_size'] = 'custom'; $header['header_custom_size'] = '150' ; // if custom size : integer value in px // here we do not add classes by .= but build up all the new needed one $header['header_class'] = " av_logo_center av_bottom_nav_header av_menu_right av_header_sticky av_header_shrinking av_header_stretch"; // when adding, it would be important that the first class added has a space in front of it } return $header; } add_filter('avf_header_setting_filter', 'avf_header_setting_filter_mod', 10, 1);Important to notice : if you like to have a shrinking header – it has to be there on general – and then remove it for those extra pages.
if you set the header custom size to lower than 65 – shrinking is disabled___________________________________ just for info
these are other options ( no added class is needed on #header )$header['header_topbar'] = 'header_topbar_active'; $header['header_social'] = 'icon_active_left extra_header_active'; // or : 'icon_active_right extra_header_active' $header['header_secondary_menu'] = 'secondary_left extra_header_active'; // or : 'secondary_right extra_header_active' $header['header_phone_active'] = 'phone_active_left extra_header_active'; // or : 'phone_active_right extra_header_active'-
This reply was modified 4 years, 5 months ago by
Guenni007.
@Donkies11 : maybe this could be helpful for you: https://kriesi.at/support/topic/smaller-version-of-header-for-one-page/#post-1316282
-
This reply was modified 4 years, 5 months ago by
Guenni007.
Apart from the following, i would still wait until 4.8.6.3. They have some good new features.
I always do use this procedure:
https://kriesi.at/support/topic/some-hints-and-advice-to-update-enfold/#post-1056107but having a backup is always a good idea. I like Duplicator and even in its free version it will do the job perfectly.
create your own shortcode f.e. ( sorry – it is mine – so its for german time )
binding words as friday the 28 had to be escaped
usage in content : [show-date]function show_date_with_shortcode() { date_default_timezone_set('Europe/Berlin'); setlocale(LC_TIME, 'de_DE.UTF-8'); $uhrzeit = date_i18n( 'l \d\e\n ' . get_option( 'date_format' ) . ' ' . get_option( 'time_format' ). ' \U\h\r' ); return $uhrzeit ; } add_shortcode( 'show-date', 'show_date_with_shortcode' );or in this way:
function datum_shortcode() { $year = date_i18n('Y'); $day = date_i18n('d'); $month = date_i18n('F'); $weekday = date_i18n('l'); $datecolor = date_i18n('l') == 'Sonntag' ? 'red': 'gray' ; $datum = '<div id="kalenderblatt"><div class="monat-jahr"><span class="monat">'.$month.'</span><span class="jahr">' .$year.'</span></div><div class="tag ' .$datecolor.'">'.$day.'</div><div class="wochentag">'.$weekday.'</div></div>'; return $datum; } add_shortcode('show-date', 'datum_shortcode');
to have with a little css:
https://basis.webers-testseite.de/calendar-sheet/August 27, 2021 at 12:40 pm in reply to: Copyright mit Datenschutz jeweils extra für deutsche und englische Website #1318640i understand it in this way:
I have a bilingual website and use Polylang for it. I have in the copyright info also the imprint (Link) and privacy policy (link) inside. Currently, both are therefore (both links are there in english and german – so 4 Links) unfortunately also for the English website in German or just linked to the German pages. Is there a way to add a separate copyright with english privacy policy (incl. link to the page) and imprint for the english website?so this will solve the issue:
[polylang lang="en"]<a href="https://domain.com/en/imprint">Imprint</a> - <a href="https://domain.com/en/privacy">Privacy</a>[/polylang][polylang lang="de"]<a href="https://domain.com/impressum">Impressum</a> - <a href="https://domain.com/datenschutz">Datenschutz</a>[/polylang]August 27, 2021 at 10:33 am in reply to: Copyright mit Datenschutz jeweils extra für deutsche und englische Website #1318612for your copyright input field – you can activate the shortcodes usage of polylang by this in your child-theme functions.php:
function polylang_shortcode($atts, $content = null){ if (empty($content)) return ''; extract( shortcode_atts( array('lang' => ''), $atts ) ); if (empty($lang)) return "<h3>You must specify 'lang' using shortcode: polylang</h3>"; return ($lang == pll_current_language()) ? $content : ''; } add_shortcode('polylang', 'polylang_shortcode');after doing that you can insert to content shortcodes like this:
[polylang lang="en"] here is your english phrase [/polylang][polylang lang="de"] und hier kommt die deutsche Entsprechung hinein [/polylang]and this will work in footer copyright input field aswell.
August 25, 2021 at 9:35 pm in reply to: Only one picture needet – not all … / Nur ein Bild beim Anklicken anzeigen #1318345or the other way round:
You decide by giving same class to the images which belongs to each other.
Class: group-1 will open together – etc.// group images for lightbox galleries (group-1, group-2 etc) function handle_lightbox_groups_in_gallery(){ if(is_page(123456)){ ?> <script> (function($){ $(window).on('load',function() { $('.group-1 .lightbox-added').attr('data-group', '1'); $('.group-2 .lightbox-added').attr('data-group', '2'); $('.group-3 .lightbox-added').attr('data-group', '3'); $('.group-4 .lightbox-added').attr('data-group', '4'); $('.group-5 .lightbox-added').attr('data-group', '5'); $('.group-6 .lightbox-added').attr('data-group', '6'); $('.group-7 .lightbox-added').attr('data-group', '7'); $('.group-8 .lightbox-added').attr('data-group', '8'); var groups = {}; $('.lightbox-added').each(function() { var id = parseInt($(this).attr('data-group'), 10); if(!groups[id]) { groups[id] = []; } groups[id].push( this ); }); $.each(groups, function() { $(this).magnificPopup({ type: 'image', mainClass: 'avia-popup mfp-zoom-in mfp-image-loaded', closeOnContentClick: false, closeBtnInside: false, gallery: { enabled:true } }) }); }); })(jQuery); </script> <?php } } add_action('wp_footer', 'handle_lightbox_groups_in_gallery');Ok – thanks for the response
August 25, 2021 at 1:35 pm in reply to: Content Security Policy without using 'unsafe-inlne' #1318285I have tried to read into the use of the nonce attribute in CSP Level 2, but my modest script knowledge is not sufficient for that.
Yes Rikard – he did –
it seems that feedback about a positive solution in this forum is no longer necessary.August 25, 2021 at 8:49 am in reply to: Content Security Policy without using 'unsafe-inlne' #1318243see here : https://kriesi.at/support/topic/header-security-entries/#post-1153114
it is clear that if you like to use Google maps or play youtube videos you had to allow connection and script load ( and style too ) from Google Servers.
So you can add these servers by listing them in your CSP ( see here my settings : Link )
What makes me wonder ( and that was the reason for my topic on November 2019 ) is that the backend of a fresh installed WordPress could not work without these settings ( unsafe-inline … ).but allways think of : after changing these sizes – a regeneration of the calculated thumbnails had to be done ( see this again: Then regenerate thumbnails … )
You can read here about the influence of some parameters to those changed or new sizes: https://developer.wordpress.org/reference/functions/add_image_size/ – especially the crop ( true, false ) ;) seems to be important.you can try this:
#top.page-id-137 #av_section_3 .iconbox_content_title { display: block; position: absolute !important; bottom: 20%; top: auto; left: 50%; transform: translateX(-50%); width: 90%; line-height: 1.8em }btw: on your english site there must be something wrong with the setup.
Everything on main looks different to your native language. Did you synchronize your css with the native language allready?PPS: if you like to preserve the container-width of the normal content change the max-width in that one rule above to:
#footer .container { display: flex; flex-flow: row wrap; justify-content: space-evenly; width: 100%; padding: 0 !important; max-width: 1340px !important; /*** this is different to the rule above ***/ left: 0!important }well if it is your homepage – i would flex the content and use the whole width of the viewport,
and because you have one time the featured images on the right once on the left it is hard to say what text belongs to the image.
So maybe you colorize the columns to have a better overview.#footer { padding: 25px 0 5px 0; } #footer .container { display: flex; flex-flow: row wrap; justify-content: space-evenly; width: 100%; padding: 0 !important; max-width: 100% !important; left: 0!important } #footer .container:after{ display: none } #footer .container .flex_column { flex: 0 1 22%; width: unset !important; margin: 0 0 20px 0; padding: 10px; background-color: #333 } #footer .container .flex_column section { padding: 0 15px; } @media only screen and (max-width: 1149px) { #footer .container { justify-content: space-evenly; width: 100%; } #footer .container .flex_column { flex: 0 1 46%; width: unset !important; margin: 0 0 20px 0; } } @media only screen and (max-width: 767px) { #footer .container { justify-content: space-evenly; width: 100%; } #footer .container .flex_column { flex: 0 1 90%; width: unset !important; margin: 0 0 20px 0; } }and on less wide screens: 2rows 2columns:

on small screens: 1 column only
A tried and tested means of circumventing the definitions determined by the browsers is not to display the checkbox itself (opacity: 0) but to build a substitute in the form of a pseudo-container.
you can see two examples in the contact-form : https://webers-testseite.de/kontakt/
in this combination it works
Select Your Editor -> Use Classic Editor
add_theme_support( 'avia_gutenberg_post_type_support' ); function disable_gutenberg_for_cpt($current_status, $post_type){ // Use your post type key instead of 'portfolio' if ($post_type === 'portfolio') return false; return $current_status; } add_filter('use_block_editor_for_post_type', 'disable_gutenberg_for_cpt', 10, 2);this comes to child-theme functions.php:
function my_avf_customize_heading_settings( array $args, $context, array $extra_args = array()){ if( $context == 'avia_masonry' ){ $args['heading'] = 'p'; } return $args; } add_filter( 'avf_customize_heading_settings', 'my_avf_customize_heading_settings', 10, 3 ); -
This reply was modified 4 years, 4 months ago by
-
AuthorPosts

