Forum Replies Created
-
AuthorPosts
-
again – i see that the author page has its own loop-author.php.
If you like to adjust this too – it is nearly the same you can change.
___________And PS: if you got more than two or three tags – this will look not so nice.
Then it would be better to have it like on the single post beneath or over that metassorry we had to exclude it for single page – otherwise it is doubled the tags – correction follows
Edit : done – see substitute lines above- or the wholeloop-index.php here: Link on pastebin
By the way : if you have more infos on that position ( comma separated tags – the flex modell is not the best solution here.
just put:#top .fullsize .template-blog .post .entry-content-wrapper > * { max-width: 100%; }
please tell me if you have seen my example page – because i want to get rid of the child-theme loop-index.php.
Ismael would like to look into this installation – to fix a little bug with older posts and list-view of blog or archive pagesfor example as a substitute for that lines:
if( $blog_style !== 'bloglist-compact' ) { echo "<span class='post-meta-infos'>"; //echo "<time class='date-container minor-meta updated' >" . get_the_time( get_option( 'date_format' ) ) . '</time>'; //echo "<span class='text-sep text-sep-date'>/</span>"; if(has_tag() && !is_single() && ! post_password_required()){ echo '<span class="minor-meta">'; the_tags( __( 'Tags: ', 'avia_framework' ) ); echo '</span>'; echo "<span class='text-sep text-sep-tags'>/</span>"; } if ( get_comments_number() != '0' || comments_open() ) { echo "<span class='comment-container minor-meta'>"; comments_popup_link( '0 ' . __( 'Comments', 'avia_framework' ), '1 ' . __( 'Comment', 'avia_framework' ), '% ' . __( 'Comments', 'avia_framework' ), 'comments-link', '' . __( 'Comments Disabled','avia_framework' ) ); echo '</span>'; echo "<span class='text-sep text-sep-comment'>/</span>"; }
so if it is not a single post and not protected the tags are shown.
see here archive page for allgemein : https://webers-testseite.de/category/allgemein/
see loop-index.php lines 373ff:
so you can have a child-theme loop-index.php ( just make a copy and place it in a subfolder of your child-theme : “includes”)if( $blog_style !== 'bloglist-compact' ) { echo "<span class='post-meta-infos'>"; echo "<time class='date-container minor-meta updated' >" . get_the_time( get_option( 'date_format' ) ) . '</time>'; echo "<span class='text-sep text-sep-date'>/</span>"; if ( get_comments_number() != '0' || comments_open() ) { echo "<span class='comment-container minor-meta'>"; comments_popup_link( '0 ' . __( 'Comments', 'avia_framework' ), '1 ' . __( 'Comment', 'avia_framework' ), '% ' . __( 'Comments', 'avia_framework' ), 'comments-link', '' . __( 'Comments Disabled','avia_framework' ) ); echo '</span>'; echo "<span class='text-sep text-sep-comment'>/</span>"; } …
the line is fast commented out by:
// echo "<span class='text-sep text-sep-date'>/</span>";
and
// echo "<span class='text-sep text-sep-comment'>/</span>";
2) this is only a top/bottom border so quick css can solve it.
3) guess this will be possible – i’m looking for it.
July 2, 2020 at 6:26 pm in reply to: Nur Burger Menu auf bestimmten Seiten | only Burger Symbol on specific pages #1227563https://docs.woocommerce.com/document/conditional-tags/
Wenn du z.B. verschiedene tags zusammenfassen willst, dann kann man das durch
&&
machen, wenn beide bedingungen zutreffen müssen
durch das doppel pipe||
wird ein oder gesetzt als zB:
if(is_singular('post') && comments_open() || is_singular('portfolio') ) {
bedeutet dann, dass alle Beiträge betroffen sind bei denen zusätzlich die Kommentarfunktion aktiv ist – oder alle Portfolios.yes that would do the trick – but to make it perfect – the separator between time and author had to be in the middle too.
This is possible with flex modell and to give a fix width to those containers.
the container with the text separator got the class: text-sep – this is set in the code above to a width: 0 because the content of it is not important it is a normal “/” and set with text-indent to not be seen. The visible Separator is only a border-left – and this could be seen even if width is 0.I like the setting with space-evenly
July 2, 2020 at 2:05 pm in reply to: Nur Burger Menu auf bestimmten Seiten | only Burger Symbol on specific pages #1227498weil die woocommerce-shops bestimmt keine Seiten sind – sondern post.
Also die Produkte single-posts und der Rest dann Kategorien etc. Da musst du schon genau hinschauen was es ist.
Wie gesagt – man kann mittels der conditional tags wirklich viel machen – auch subtrees etc. oder hat categorie so und so etc. pp.
Aber dafür müsste ich die Seite sehen können. Da ich Participant bin wie du sehe ich keine Links in den private content feldern.habt ihr Erfahrungen damit ? Wie habt ihr das Domain Mapping eingerichtet?
zB: https://wordpress.org/support/article/wordpress-multisite-domain-mapping/In einer Subdomain ist es etwas einfacher.
Ausserdem ? Muss es denn unbedingt eine Multisite sein? Welche Vorteile erhofft ihr euch dadurch?Ich habe das mal mit einer Subdomain durchgeführt. Abgesehen davon, dass es zwar gute Backup Lösungen gibt, die aber kostenpflichtig sind ( Updraft etc. )
Das habe ich auch nur gemacht, weil das “gemeinsame” Menu und hin-und-her schalten zwischen den beiden so einfacher zu realisieren war.:
https://naturleben-rheinland.de/So it wasn’t about finding the solution, but to have it installed from Dev-Team directly as a fix for next update, so that it works correctly depending on the setting. So why don’t you write it down this way?
July 2, 2020 at 10:42 am in reply to: Nur Burger Menu auf bestimmten Seiten | only Burger Symbol on specific pages #1227431you can insert this to your child-theme functions.php:
function custom_burger_menu_active( $active, $context ){ if( is_page(3) ) { return true; } return $active; } add_filter('avf_burger_menu_active', 'custom_burger_menu_active', 10, 2 );
if you got more than 1 page it should work use any conditional tag you like : https://codex.wordpress.org/Conditional_Tags
f.e.:if(is_page(array( 3041, 29934, 36532 ))){ …
this is not an exclusive enfold trouble – it is the old “diagonal submenu hover problem” – and google on that – it is a well known problem of multi-level drop-down menus.
Maybe this is a nice first info on it: https://css-tricks.com/dropdown-menus-with-more-forgiving-mouse-movement-paths/
to have it perfect ( the separator exactly on the center too !
.html_elegant-blog #top .post-entry .post-meta-infos, .html_elegant-blog .avia-content-slider .slide-meta { display: flex !important; flex-flow: row nowrap; justify-content: center; float: none !important; margin-top: 80px; /*** to have the same distance as before ***/ max-width: 100% !important; } .html_elegant-blog #top .post-entry .post-meta-infos > * { width: 150px; /*** just play a bit with this that it does not break at mobile screen-width ***/ } .html_elegant-blog .post-entry .post-meta-infos .text-sep, .html_elegant-blog .post-entry .slide-meta .slide-meta-del { width: 0 !important; }
1 ) use position flex instead:
.html_elegant-blog #top .post-entry .post-meta-infos, .html_elegant-blog .avia-content-slider .slide-meta { display: flex !important; flex-flow: row nowrap; justify-content: center; float: none !important; margin-top: 80px; /*** to have the same distance as before ***/ max-width: 100% !important; }
By the way: see what happend if you got on justify-content : space-evenly or space-around or space-between
of course it would be better to see the blog page in question.
2) i think you can only have one or the other?
or is it possible to show for one entry the post-meta infos and for the other not?
so if you do not like to have two separators here – remove one of them ( border-top f.e.)-
This reply was modified 5 years ago by
Guenni007.
And which one you are interested in?
There are a lot of hover effects on that page.yes it works good – i use them too- but:
To understand what the tool really does, it is necessary to take a close look at the law.
I don’t think that the link to your Facebook page et al. is the problem. It’s these buttons you can press to share an article or a page. There, information about the page and the IP address of the person who clicks on it are forwarded directly.
Similar to the button that leads to a GoogleMap page – even to a map in an iframe – does not violate the GDPR (DSGVO – for the German speaking countries).
When a map is embedded it is different. And so it is with the Share Buttons.
Shariff Wrapper does exactly that – it prevents the personalized transfer of data from the person who presses the Share Button.
That means you can already use Enfold’s social buttons, which only provide the link to the page.
But you should leave this function to the Shariff Wrapper.
where on your page should this happen – maybe a screenshot where you like to show those icons.
It would help if you were willing to follow the instructions. It’s uncertain if it will solve the problem, but at least it will help you to avoid writing mistakes or orphaned older files.
Through this procedure, I think I’ve explained it well, you have exactly this safety in the backhand – to return to the previous state.
The trick on this is not to overwrite the existing enfold folder but to upload a new one with a different name ( enfold-new). When this is done only a double renaming on the ftp folder does change the enfold parent themes. The existing is renamed to enfold-old and the newly uploaded now is renamed to enfold. From this moment the newest is the source for the enfold-child ( because that is the reference : then name of the folder: enfold ).After all, I gave you the links to help you get ahead here.
My kind of help is always the help for self-help – under the aspect of the steep learning curve. If you always want to be dependent on help from others, you can do so.
Dito: Have a great rest of your week and take care!Yes – Thats why i post the link: https://kriesi.at/support/topic/some-hints-and-advice-to-update-enfold/#post-1056107
See documentation how it’s generally done. Easy – drag&drop. : https://kriesi.at/documentation/enfold/install-enfold-theme/#ftp-install
if you are on the layer where enfold and enfold-child folder are siblings ( on your client see image press: “Up one level” )
you can do it like in my link said:Update via ftp.
- Rename the downloaded newest version to enfold-new
- Upload that enfold-new folder to the themes folder
- Rename your enfold folder to f.e. enfold-old
- Rename your enfold-new folder to enfold
- Check if all your existing settings work to your full satisfaction.
Yes – then stop here
No ( rollback ) –
- rename back the enfold folder back to enfold-new
- rename the enfold-old folder back to enfold
July 1, 2020 at 7:27 pm in reply to: Blog Posts ALB with Portfolio – do not work as expected #1227322Ok
I set the page to “under construction”
and even that link is not able to post on public?
This site was built by a consultant back in 2016 and handed off to us to manage.
Are you familiar with using a ftp client? Please go to your ftp folder of enfold-child and have a look if there are other files than :
style.css , functions.php and screenshot.png – if so – please tell us what folders/files are in additon on the server.
Maybe that consultant has created some own child-theme files.
Updating via the dashboard does not overwrite these files ( and that is among other things the advantage of a child theme ) – but sometimes when essential files are updated the child-theme files had to be adjusted.
F.e. some users got an own child-theme header.php – there was a time where the lightbox implementation changes on Enfold Parent Theme ( and that is in header.php) – so after updating the lightbox does not work anymore.
it would help if we knew if such extra child files existed.Next assumption: Updating via the dashboard does not always work correctly. It seems to finish the update process successfully, but it has left write errors.
i do always update via ftp this way: https://kriesi.at/support/topic/some-hints-and-advice-to-update-enfold/#post-1056107
This also has the advantage that there is always a rollback in case of inconsistencies.If you have your child-theme – than you can try that if it brings back a working textblock alb. ( except there are the given : Maybe on top )
i thought to that first – but my guess was that if it is used elsewhere in the whole site – the scripts are loaded. And because of the same site/domain this would mean that the slider scripts are loaded.
That is one trick i use often when inserting a shortcode to other alb elements f.e.: an icon-list in an accordion slider.
for those elements i have an extra page which i do not link in my page and excluded from SEO and Search Results. Only for that kind of usage.i have that blue on your site no white font on white background:
thats what my developer tools gives for your site:::selection { background-color: #3c5db1; color: white; }
if you want to have a different setting do not forget to set for moz selection
-
This reply was modified 5 years ago by
Guenni007.
and you really want to change the logo only for mobile devices – or do you mean for small screen widths?
for mobile devices put this to your child-theme functions.php
add_filter('avf_logo','av_change_mobile_logo'); function av_change_mobile_logo($logo){ if(wp_is_mobile()){ $logo = "/wp-content/uploads/mobile-logo.png"; } return $logo; }
and if you want to have on mobile devices a different transparency logo:
function av_change_mobile_transparency_logo($header){ if(wp_is_mobile()){ $header['header_replacement_logo'] = "/wp-content/uploads/mobile-transparent-logo.png"; } return $header; } add_filter('avf_header_setting_filter','av_change_mobile_transparency_logo');
the code above is complete?
every opening tag – needs a closing one – so every<ul> needs a </ul>
but why three lists ?
i guess this will be enough code:<ul class="icon-bullets"> <li class="icon-location"><a href="https://google-maps-link" rel="nofollow">Address</a></li> <li class="icon-phone"><a href="tel:+000000000" rel="nofollow">(+000) 000 000 000</a></li> <li class="icon-mail"><a href="mailto: (Email address hidden if logged out) " rel="nofollow"> (Email address hidden if logged out) </a></li> </ul>
and:
ul.icon-bullets li { list-style: none; } ul.icon-bullets li { padding-left: 8px; } ul.icon-bullets li::before { font-family: 'entypo-fontello'; font-size: 23px; font-weight: normal; position: absolute; left: -6px; width: 30px; text-align: center; } ul.icon-bullets li.icon-location:before { content: '\e842' } ul.icon-bullets li.icon-phone:before { content: '\e854' } ul.icon-bullets li.icon-mail:before { content: '\e805' }
with text-align you decide where the icons are in the before containers.
can not test your icon code
June 29, 2020 at 10:24 pm in reply to: Activate drop-down in menu using keyboard for disabled users #1226610One big trouble is that it is different on every browser.
On that it would be easy to set a :focus state for the links – but f.e. my firefox browser only switches on top in the menu line ( browser menu line) by tab navigation. But i guess people with physical disabilities will have special browsers in this case.
A reader is already implementedOn Submenu – the arrow keys should indeed be activated for the menu: see here some good hints for the devs ;)
https://www.w3.org/TR/wai-aria-practices/examples/menubar/menubar-1/menubar-1.html-
This reply was modified 5 years ago by
Guenni007.
yes that would be nice – the mathematic is very ease and the avia-snippet-sticky-header.js could be as it is only these two factors had to be in relation to an input field ( f.e. shrink_factor – with standard : 2 ) on register-admin-options.php – this input field has dependency like custom height only visible when custom height is choosen.
f.e.:
$avia_elements[] = array( "slug" => "header", "name" => __("Header Shrink Factor", 'avia_framework'), "desc" => __("Choose a custom shrink factor - two digits f.e. 2.85", 'avia_framework'), "id" => "header_shrink_factor", "type" => "text", "std" => "2", "required" => array('header_size','custom') );
the custom height is not important on those calculations – because it can be shortend
one could also rearrange this formula, since division by a quotient is equal to multiplication by the reciprocal value
on line 64 :
if(st < el_height*(shrink_factor-1)/shrink_factor
on line 76 :newH = el_height/shrink_factor;
thats all.-
This reply was modified 5 years ago by
Guenni007.
June 29, 2020 at 9:28 pm in reply to: How to set specific Header sizes for Desktop and Mobile #1226599sometimes a relative font-size ( f.e. the given settings for screenwidth relation fit well 4vw means 4% of screen width )
June 29, 2020 at 9:22 pm in reply to: How to set specific Header sizes for Desktop and Mobile #1226596if it is only for a few headings – open that page and open that heading ( if the page is made with the advanced layout builder)
Sadly only the other heading styles not the standard style got this option on Style tab to set for 4 different screen width a font-size:
-
This reply was modified 5 years ago by
Guenni007.
-
This reply was modified 5 years ago by
-
AuthorPosts