Lrrr
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: 4.4 broked primary xoxo hieararchy…closing tospics, there was a Mistake in my function file. Sorry and thank you all! Its fixed.
Forum: Fixing WordPress
In reply to: Thumbnails generated with wrong css size class and img atributesMoving this topic to theme forum, because after long investigation, Im suppossing its parent theme issue, I have tested also WP default themes, but it has not excerpts with images. So I will post this to thematictheme.com
My end results are that issue will arise, only if excerpt printed out on screen…
Forum: Fixing WordPress
In reply to: Thumbnails generated with wrong css size class and img atributesVery Interesting partial result!!!
I had to comment out part of code becose it is not cropping thumbnails at all! Explanation in comment:add_theme_support( 'post-thumbnails' ); //set_post_thumbnail_size( 180, 180, true ); // not works with cropping setted in media backend!!! add_image_size( 'related', 150, 100, true ); //related , must regenerate thumnails after
Unfortunatelly Im still facing wrong dimension issue…
Forum: Fixing WordPress
In reply to: Thumbnails generated with wrong css size class and img atributesSorry all Im totally dissapoitnted, when I unsett all custom sizes and regenerated thumbnails I put in function.php
function wpdocs_setup_theme() { add_theme_support( 'post-thumbnails' ); set_post_thumbnail_size( 180, 180, true ); } add_action( 'after_setup_theme', 'wpdocs_setup_theme' );
And regenerate thumbnails again, and whats happen?! When I want to insert image into post it offers me only square images from 180 over 300 to 800px … but squares… anyone know what Im doing wrong? I set only thumbnail to square! ?! – Im stupid It was square image… lol… rofl…
Forum: Fixing WordPress
In reply to: Thumbnails generated with wrong css size class and img atributesactually thinking about
_wp_get_image_size_from_meta
which i think takes image size from image meta someway… Im stuck dont know where to track it…even I made several sizes like in screenshot that works as you can see on printscreen, even default thumbnail have 180px… but still in
<img
tag on main page https://www.danielkral.cz/clanky have 100px dimensions:<img width="100" height="100" src="https://www.danielkral.cz/wp-content/uploads/K9mailLogo-180x180.png" class="attachment-100x100 size-100x100 wp-post-image" alt="K9mailLogo" title="K-9 email" srcset="https://www.danielkral.cz/wp-content/uploads/K9mailLogo-180x180.png 180w, https://www.danielkral.cz/wp-content/uploads/K9mailLogo.png 300w" sizes="(max-width: 100px) 100vw, 100px">
Forum: Fixing WordPress
In reply to: wordpress website isn't opening on particular computer browserwhat about try switch of firewall and antivirus for a while? If it will works then, then it could be blocking it for that browser, and also try a ping some server (wordpress) in cmd…
secondly, try a run PC in safe mode with network,
third, if you say its your laptop only there could be some restriction on network possibly changed?
Very hard said from far, try to find some colleague with IT capabilities ??Forum: Fixing WordPress
In reply to: Thumbnails generated with wrong css size class and img atributesI found today somethimg could be linked to my issue (maybe not becose there is AJAX used): https://wordpress.stackexchange.com/questions/42860/wp-get-attachment-image-returns-different-image-size
Now Im searaching for the function which is responsible for wordpress that gets the image dimensions to check it, actually have not found so if you know please share… thx Im probably close cos im rewieving
wp_calculate_image_sizes
function and theirs variables…Actually i can get rid of the dimension atributes on image even I can filter classes but I do not want to do it, I want to know why Im getting 100×100 image size on image with other size…
Forum: Fixing WordPress
In reply to: Thumbnails generated with wrong css size class and img atributesUpdate 3: I will keep it simple, deleted all files .php and .js from theme folder, issue persist. Other wp default templates works normally.
Issue: wrong sizes attachment-100×100 size-100×100 and width=”100″ height=”100″, also the responsive sizes are wrongly generated sizes=”(max-width: 100px) 100vw, 100px at home page and archives. But on single page it is correct.
Have done: changed default thumnail size at settings media backend, regenerated thumbnails. Leaving a try to put custom size. Default size changed thumbnail must work.Forum: Fixing WordPress
In reply to: Thumbnails generated with wrong css size class and img atributesThanks, I have this issue only when using excerpt on my main page, in single page even it is original thumbnail its resized corectly because ut was setted in media setting on backend… so this, Its happening on main page when using excepts.
Also i observed that issue is gone, when switch to other template, so I will have to check my function file…
Thank you, but I do not uderstand to it much, even if I did put your code the image appears in position I putted the code, so its totally wrong… you code should only change the value of variable not the print image…
I did read it before I wrote here… Im solving it and googling all day…Update: I totally deleted my function.php and problem persist, so really its somewhere in other template files…
Update2: this is my single article img, its correct, but on main page where are excerpts there is wrong sizes as I posted here before.<img src="https://www.danielkral.cz/wp-content/uploads/K9mailLogo-180x180.png" alt="K9mailLogo" width="180" height="180" class="alignleft size100px size-thumbnail wp-image-5330" srcset="https://www.danielkral.cz/wp-content/uploads/K9mailLogo-180x180.png 180w, https://www.danielkral.cz/wp-content/uploads/K9mailLogo.png 300w" sizes="(max-width: 180px) 100vw, 180px">
Please understand that I dont need specially sized images, it is enough to change default thumbnail size, what I even did in wp settings… but now Im facing this issue, that thumnails css and sizes are incorect when displayed on archive template, sorry for longer descrition I should do that first time yet… ??
I found the fix: disable “Enable full-height editor and distraction-free functionality.” in the menu of displayed boxes of edit post…
Other solution is to allow fullscreen…I have same issue, even I have more rows of custom buttons so Im not seeing more lines than you… I think its CSS issue and it should be easy to fix it.
<div id="ed_toolbar"
is overlaping the edit code box…Forum: Fixing WordPress
In reply to: 4.4 broked primary xoxo hieararchy…Hi, I found the issue, not actual function in my Own theme: heres the code which if I disable , everything works fine. Sorry for incovenience.
function XYXcustom_tax($args) { global $wp_query; global $post; $dk_page = get_page_by_title( 'foto' ); $je_fot = has_parent( ($wp_query->post), $dk_page->ID) ; if( is_tax( 'attachment' ) || $je_fot ) { $args = array( 'taxonomy' => 'attachment'); $args['largest'] = 1.8; //largest tag $args['smallest'] = 1; //smallest tag $args['unit'] = 'em'; //tag font unit } if( !is_tax( 'attachment' ) && !$je_fot) { $args = array( 'taxonomy' => 'post_tag'); $args['largest'] = 1.8; //largest tag $args['smallest'] = 1; //smallest tag $args['unit'] = 'em'; //tag font unit } return $args; } add_filter('widget_tag_cloud_args','dk_display_custom_tax');
Please if you get the idea where is the my code loosing actuality, and why this code caussing the missing envelop tag for tag cloud, please would be kind to tell me… Thanks, and happy New Year!
Thats it: was not compatible due to taxonomy reallocating, dont know why there must be:
$args['taxonomy'] = 'post_tag';
for working switching the tag cloud in the new WP…
Forum: Fixing WordPress
In reply to: 4.4 broked primary xoxo hieararchy…Main theme is thematic, but my own is child… But still have to say it worked before update to 4.4… https://thematictheme.com/
Forum: Fixing WordPress
In reply to: 4.4 broked primary xoxo hieararchy…Oh, did not? I will explain… In WP you have widget to put it on certain spaces in web. But, here whereas I put widget “tagcloud” it puts links as you can see on screenshot. But whats strange is that other widget, i.e. “text-20” widget which I put on other place in WP administration, is not in same hierarchy in code but inside… You can see it in screen shot… there is text-20 widget container, but tag cloud has not any container (should have, isnt?) and this is whats broke design… It is more clear?
It shloud be like:
<li id="text-20"> <li id="tag-cloud"> <li id="text-22">
But it is:
<li id="text-20"> <a class="tag-link-122"> ... <a class="tag-link-181"> <li id="text-22">
Forum: Fixing WordPress
In reply to: 4.4 broked primary xoxo hieararchy…Thanks for respond, its my own theme, my own css and had broken just after update… I fixed that but still code seems as on printscreen and this is generated by WP source code which is responsible for generating tag cloud… So I suppossing that somehere in that wp code something was changed and its not back compatible…
Forum: Plugins
In reply to: [Media Library Assistant] Blank MLA pageHi, As I wrote(maybe my english not so good ?? ) adjusting memory did NOT solve the issue , only the decreasing amount of viewed imagen in MLA assistent screen :)))