-
AuthorPosts
-
January 17, 2019 at 11:10 am #1054926
Hi Mike !!
Thank you for the feedback, I would like to assist, but some of these requests are more involved than a few lines of code, they would require more than our scope of service, such as:
“replace the date of the last change with the date of the last comment received”
and making the blog posts filterable.
-1- That’s what I imagined, we’ll find other solutions. Thanks!We do have the masonry element that is filterable and will show random. If you try this, try the settings “perfect grid” & “high portrait” for the images
-2 maybe it could be right for me, is it possible to add the comment count in the previews of the masonry grid? and is it possible to obtain a grid with the proportions of the original photos (height 3, width 2)
I created a test grid at link 4 (in private)But to make your other blog posts random, Try adding this code to the end of your functions.php file in Appearance > Editor
-3 I tried the code but unfortunately did not work, I hope we can solve either point 2 or point 3 to be able to get what I want. Thank you!Many thanks for yours
January 17, 2019 at 11:20 am #1054932Hi,
Thank you for the feedback, I would like to assist, but some of these requests are more involved than a few lines of code, they would require more than our scope of service, such as:
“replace the date of the last change with the date of the last comment received” and making the blog posts filterable.
-1 Yes, I imagined, I will look for other solutions, thanks anyway!We do have the masonry element that is filterable and will show random. If you try this, try the settings “perfect grid” & “high portrait” for the images.
-2 Very well, this could be right for me, but is it possible to add the comment count in the previews? I created a test gallery at link 4 (in private)But to make your other blog posts random, Try adding this code to the end of your functions.php file in Appearance > Editor:
-3 I tried the code but it did not work, I hope to solve at least one of these 2 points to be able to get what I need …
Thank you for your wonderful support
I am waiting for an answer.January 18, 2019 at 12:15 pm #1055420Hi Mike, I’m sorry if I write again, but the exact opposite of what I wanted to do.
In the Page (new link 1 in private) there are 2 galleries, the first with images should be random, the second at the bottom without images must be in chronological order.
How can I put this in order?
Many thanks for your supportJanuary 18, 2019 at 12:56 pm #1055431I have reloaded in file system enfold child the old Archieve.php and function.php files … and everything is back as before
I should just be able to randomize the gallery and be visible in the link I put in private, or else add the comment count to the masonry grid that would be great.
I await your intervention. THANK YOU- This reply was modified 5 years, 10 months ago by Marco.
January 18, 2019 at 12:56 pm #1055432I have reloaded in file system enfold child the old Archieve.php and function.php files … and everything is back as before
I should just be able to randomize the gallery and be visible in the link I put in private, or else add the comment count to the masonry grid that would be great.
I await your intervention. THANK YOU- This reply was modified 5 years, 10 months ago by Marco.
January 19, 2019 at 10:57 pm #1055979Hi,
Sorry for the late reply, I added this code to your functions.php and now the posts on “Pisa” are random, Please clear your browser cache and check.//show blog posts random add_filter('avia_post_slide_query','avia_order_by_random', 10, 2); function avia_order_by_random($query, $params) { $query['orderby'] = 'title'; $query['order'] = 'rand'; $terms = explode(',', $params['categories']); if (!empty($terms) && in_array(1, $terms)) { $query['orderby'] = 'date'; } return $query; }
Best regards,
MikeJanuary 20, 2019 at 3:07 pm #1056162Hi Mike, Thanks! your help is Fantastic!
Only problem is that it appeared that the data of the day next to the comment count. I had removed it from the main panel-enfold Child “Blog Layout” but after your modification it reappeared.
moreover the preview photo in the internal research “ajax recearch” is became a feu big ….Waiting for your response.
Thank you!January 20, 2019 at 5:21 pm #1056197Hi,
To remove the date, try this css:.slide-meta .slide-meta-del, time.slide-meta-time { display: none !important; }
for the search results, try this css:
.ajax_search_response .av_ajax_search_image { border-radius: 0px !important; }
Best regards,
MikeJanuary 21, 2019 at 6:01 am #1056423Hi Mike,
Fantastic ! the first css code, regarding the day date worked …
The second did not work. I noticed that the one for the internal research took effect but only in the preview of the entire research (the one that appears while writing the word on the research) and therefore it is equally convenient because I like how it modeled that preview, it would be interesting to know how to put the number of comments there, however, when you click on “send” the previews are bubble-shaped and a little too big, …
Thank you very much for your help, I would really make you a monument!- This reply was modified 5 years, 10 months ago by Marco.
January 22, 2019 at 12:51 am #1056943Hi,
Sorry I guess I didn’t understand correctly, the second code was to make the ajax search have the square images, please see [image 1]
but I now understand you want the search results to also have a square image like in [image 2]
for that please try this css:.search.search-results .template-search .entry-content-wrapper .post-title,.search.search-results .template-search .entry-content-wrapper .post-title+.post-meta-infos { padding-left: 160px !important; } .search-result-counter img { border-radius: 0px !important; }
I noticed that the titles and comments were not lined up well, so this code also helps with that.
Best regards,
MikeJanuary 22, 2019 at 5:37 pm #1057337Oh Mike! You are the best! it worked!
but it would be better if the photos were in 2/3 format and not square … I do not know if it’s possible to modify … otherwise it’s okay too.I’m a little worried about css, I think have custom css with the same selector and should be deleted.
Could you delete the custom css codes in excess for me?
Thank you for your work, I am very grateful.January 23, 2019 at 4:16 am #1057551Hi,
I took a look at your WordPress > Customize > Additional CSS and compared to your Enfold Theme Options > General Styling > Quick CSS field and found a few duplicates, so I cleaned it up and moved all the css to the WordPress CSS.
I also adjusted your search results images so they are not square.
Please clear your browser cache and your WordPress cache and check . I made backups of the css should you find a error, but all looked good when I checked.Best regards,
MikeJanuary 24, 2019 at 10:03 pm #1058358Hello ,
Thank you ! just what I wanted!
but something did not work, the image galleries now do not change any position, anymore. I noticed an error, you can see it by accessing the back end, and opening the link that I have entered in private.
Thank you so much!- This reply was modified 5 years, 9 months ago by Marco.
January 25, 2019 at 8:49 am #1058549Hi Mike, after writing you the answer, I tried to delete this function because the error was reported to the file function line 28;
$ terms = explode (‘,’, $ params [‘categories’]);
if (! empty ($ terms) && in_array (1, $ terms))
{
$ query [‘orderby’] = ‘date’;
(So now I no longer glowed the error at the link that I put in private)
it was the last function you wrote in the function.php file.
also modified this “// show blog posts random
add_filter (‘avia_post_slide_query’, ‘avia_order_by_random’, 10, 2);
function avia_order_by_random ($ query, $ params)
{
$ query [‘orderby’] = ‘name’;
$ query [‘order’] = ‘rand’;return $ query;
}and put it this way:
// show blog posts random
add_filter (‘avia_post_slide_query’, ‘avia_order_by_random’, 10, 2);
function avia_order_by_random ($ query, $ params)
{
$ query [‘orderby’] = ‘rand’;
$ query [‘order’] = ‘rand’;return $ query;
}Please , Could you check it? because the ajax cearch on mobile it is not well…
Thank you so much !!!- This reply was modified 5 years, 9 months ago by Marco.
January 26, 2019 at 2:07 am #1058973Hi,
I took a look at your page, and the posts change position with every page load, and seems to be random. So do you mean that this is working fine now?
I looked at your ajax search, and the only thing I could see wrong is that the images are a little smaller in the drop down preview, is this the error that you see?Best regards,
MikeJanuary 26, 2019 at 4:58 pm #1059170Hi, Mike !
You:<< I took a look at your page, and the posts change position with every page load, and seems to be random. So do you mean that this is working fine now?>>:
I:<< Hi, it now seems to work, but I had to delete this piece of code because an error was reported on line 28: :$ terms = explode (‘,’, $ params [‘categories’]);
if (! empty ($ terms) && in_array (1, $ terms))
{
$ query [‘orderby’] = ‘date’;in this way the error went off at line 28, but the tunnels remained stationary. but I lost the function of that code that I do not know what it was for…
– to make the galleries in random order, we have changed this:
“// show blog posts random
add_filter (‘avia_post_slide_query’, ‘avia_order_by_random’, 10, 2);
function avia_order_by_random ($ query, $ params)
{
$ query [‘orderby’] = ‘name’;
$ query [‘order’] = ‘rand’;return $ query;
}To This:
“// show blog posts random
add_filter (‘avia_post_slide_query’, ‘avia_order_by_random’, 10, 2);
function avia_order_by_random ($ query, $ params)
{
$ query [‘orderby’] = ‘rand’;
$ query [‘order’] = ‘rand’;return $ query;
}now everything seems to work, but I’m not sure I did the right thing, Since I trust you very much, please try to put the deleted function back but do not give errors and check if the function.php is OK. Thanks
Best regards,
MikeJanuary 26, 2019 at 6:31 pm #1059211Hi,
I see, the original code that I posted took into account all of the categories, but you page is not using all of the categories so that was giving the error.
You edit is working correctly for your situation, well done.Best regards,
MikeJanuary 26, 2019 at 6:43 pm #1059212Thanks Mike! you are an angel!
now it only remains to fix the preview photo in the ajax recearch from mobile ( please, see the link in private, using a mobile)and then I will open other posts for other improvements to be made.
Best Regards!
SachaJanuary 26, 2019 at 10:12 pm #1059255Hi,
Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:@media only screen and (max-width: 767px) { #top.search-results .template-search .post-entry { height: 240px !important; } }
Best regards,
MikeJanuary 28, 2019 at 2:36 pm #1059639Hello!
Thanks a lot Mike, it worked.Do you know how I can make amp pages on my site?
January 29, 2019 at 3:43 am #1059873Hi,
There is a plugin you can use, but Enfold doesn’t work so good with it. Our developers are currently in preparation for the AMP integration. There’s no ETA yet but it will be implemented on the theme in the future.
Unless there is anything else we can assist with on this issue, shall we close this then?Best regards,
MikeJanuary 29, 2019 at 8:49 am #1059908Hi Mike !
I hope you do not hate me, but I have many improvements to do again and you are very good at your job.I have to lighten the photos, google speed page says that some photos are not cut out responsively.
also always on the photos says that I should use one of the JPEG 2000, JPEG XR and WebP, to serve visitors with mobile phones.
Can you suggest something?
Many thanks !
Best regards.
SachaJanuary 31, 2019 at 4:18 am #1060699Hi,
To lighten images, please try some plugins like WebP Express or Compress JPEG & PNG imagesBest regards,
MikeFebruary 17, 2019 at 10:16 am #1067867Hello Mike ! how are you? I hope all is well!…
I need to make an improvement again ..
Look at these 3 pages on private…these pages have 2 galleries, the first gallery in random order with large preview, summary and number of comments, and it is well..
The second gallery would instead be ordered to last edit and show the comments, the date of publication, and the summary.
in practice we should change only the second gallery of these three pages, the second glleria (with small previews) so that it is not random but in chronological order and showing the date .. is it possible?Best regards
Sacha- This reply was modified 5 years, 9 months ago by Marco.
February 19, 2019 at 3:41 am #1068727Hi,
If I understand correctly, you would link the first gallery to continue to be in random order, as it is now. But the second gallery you would like it to be in chronological order?
You are also using the same gallery element for both galleries on the same page, so we would need to find a way to add this option?Best regards,
MikeFebruary 19, 2019 at 8:01 am #1068797Hello Mike!
correct, both the first and the second are galleries of the blog, the only difference is that the first gallery is 3 columns with images 450 x 675 px and the second gallery is 5 columns with images 80 x 80 px.
The 3-column tunnel is fine and so nothing needs to be changed;
The 5 columns gallery is the one I would like in chronological order and with the visible date, number of comment and together with the summary and the number of comments.
Could we give different instructions for the gallery to 3 compared to the 5?Perhaps the best thing would be to leave everything as it was by default with the date, summary, comment count, and in chronological order; and leave only the blog gallery with 3 columns that is random and no date of day, keeping summary and comment count only, but no date of day.
Thank you!
sincerly,
Sacha- This reply was modified 5 years, 9 months ago by Marco.
February 20, 2019 at 5:15 am #1069262Hi,
Sorry I’m not sure how we can achieve having chronological order and random order for the same element on the same page, because when we added the function to make the element have random order it affected the element on the whole site, we don’t have a way to tell it random and chronological in two sections on the same page.
I hope this makes sense.Best regards,
MikeFebruary 20, 2019 at 2:13 pm #1069464Hi Mike, I do not know if you’ve made any attempt on the site …. but my most important page has disappeared from the google search.
if you changed something, can you bring it back as before?
Thank youFebruary 21, 2019 at 3:17 am #1069763Hi,
Sorry, I have not done anything to your site, only because I couldn’t think of a solution for the two types of order in the same element. But I did see your site on Google, it was number 20.Best regards,
MikeFebruary 21, 2019 at 8:07 am #1069829Thanks Mike, yes, corrected, yesterday there was an update of a pluginn that cauried me a slowdown … now everything is back as before .. if there is not a way to order those “second galleries” I’ll leave ‘so why use another element could slow down the site.
– I have other work to do, for example, I created the page for 404 errors, but I would like to have the dynamic title based on the search phrase that led the user on that page. it’s possible to do it? if it were not possible, how can I modify it to optimize it better?
Thanks Mike, I know I’m a source of stress for you :-DSincerly,
Sacha- This reply was modified 5 years, 9 months ago by Marco.
-
AuthorPosts
- The topic ‘Picture and text zoom on smartphone’ is closed to new replies.