-
AuthorPosts
-
October 20, 2020 at 1:33 pm #1254365
Hi,
How can I edit the default grid generated by the “portfolio categories” in new pages?I will explaind: I have created a portfolio page (mansonry portfolio gallery) linking to several portfolio items. In the portfolio items I added several categories.
Then In the menu structure I added some pages directly from those portfolio categories. Those pages appear with a default grid within the main content, but I would like to edit them to stretch fullwidth and also become a mansonry grid. I can’t find where I can edit these automated generted layout. Hou can I do it?Thanks,
JoanaOctober 22, 2020 at 9:49 am #1254887Hey Joagin,
Could you please attach some screenshots of the issue?
Could you please attach a mockup of what you’re trying to achieve?
Best regards,
VictoriaNovember 3, 2020 at 3:04 pm #1258013November 3, 2020 at 3:05 pm #1258015November 4, 2020 at 9:25 pm #1258438Hi Joagin,
Can you please make it public? We cannot see it.
Best regards,
VictoriaNovember 6, 2020 at 11:49 am #1258830Hi, it should be public now:
https://drive.google.com/drive/folders/1Wq7etXuDnYGNWjuc33rcNHNnNaoQUzha?usp=sharing
November 9, 2020 at 6:25 pm #1259323Hi Joagin,
Thank you.
Could you please give us a link to your website, we need more context to be able to help you.
Best regards,
VictoriaNovember 11, 2020 at 11:49 am #1259834Hi Victoria,
I’m still working the website on localhost. Can’t you help me based on the mockup?Kind regards,
JoanaNovember 17, 2020 at 4:16 am #1260877Hi,
Thank you for the update.
The portfolio category pages are generated using the taxonomy-portfolio_entries.php file. The grid is not full width because it is inside a container which also follows the maximum width set in the theme options.
Best regards,
IsmaelNovember 18, 2020 at 12:26 pm #1261247Hi Ismael, thanks for your reply.
Does it means I can’t edit at all that automated generated page? Or is there a way to change the code to meet my needs? And if so, can you tell me how to do it?Thanks in advance,
JoanaNovember 20, 2020 at 4:16 pm #1261816Hi,
We have to edit the taxonomy-portfolio_entries.php, and remove some containers or divs so that the portfolio grid is not constricted or limited to a certain width. Please try to edit the said file and replace everything with this code.
// https://pastebin.com/1rTbwbbb
We might be able to use a few css modification as well to remove the width limitation on portfolio category pages, but let us try the template changes first.
Thank you for your patience.
Best regards,
IsmaelNovember 20, 2020 at 4:42 pm #1261823Thanks Ismael for your reply.
I’m just a normal computer user so can you be a bit more specific and walk me through what I need to do in order to check if it works? (and to be sure I don’t damage the web template while doing it)?
Kind regards,
JoanaNovember 23, 2020 at 7:16 am #1262265Hi,
Sorry for the confusion. If you could post the WP and FTP details in the private field, we will be happy to do the necessary modifications to the template files. Please post the info in the private field.
Best regards,
IsmaelNovember 23, 2020 at 12:22 pm #1262337This reply has been marked as private.November 23, 2020 at 6:12 pm #1262452This reply has been marked as private.November 25, 2020 at 5:23 am #1262900Hi,
Thank you for the update.
We tried to access the dashboard using the account above but the username or account does not exist. Did you remove the account? Please check the info carefully and post it again in the private field. Also, make sure that the Appearance > Editor panel is accessible.
// https://wordpress.org/support/article/hardening-wordpress/#disable-file-editing
Set the DISALLOW_FILE_EDIT to false. If you are not sure how to do this, please post the FTP details in the private field so that we could access the file server. You could ask your hosting provider on how to obtain or create an FTP account if you have not created one yet.
Best regards,
IsmaelNovember 25, 2020 at 11:48 am #1262974Hi,
I just checked the FTP details and they seem right.
Can you please try again?
Or you meant my wordpress login details?November 30, 2020 at 2:07 am #1263845Hi,
I am very sorry for the delay. We created a copy of the taxononomy-portfolio_entries.php file in the child theme and modified it a bit so that the portfolio grid becomes full width. We just removed the main containers. Let us know if that is the layout that you are after.
Best regards,
IsmaelNovember 30, 2020 at 12:49 pm #1263946Hi Ismael,
This was not exactly what I was after, no…
My goal was to achieve the same layout in the portfolio_entries layout pages (under projects menu I have 5 portfolio categories pages) than in the main menu tab ” projectos” (which is a mansonry portfolio gallery).
To sum up I was trying that the pages “habitação”, “comércio e serviços”, “equipamentos”, design de exteriores”, “estudos de edificabilidade e construção” had the same layout as the menu page “projectos”.Please let me know if it’s doable. I think this is a feature that Enfold really misses. One should be able to choose how to present the categories pages, don’t you think?
Kind regards
December 2, 2020 at 12:37 pm #1264484Hi!
Did you activate the child theme? We already created a copy of the template in the child theme directory but the changes are not reflecting in the front end. Please upgrade the theme to version 4.7.6.4, then post the WP login details again in the private field so that we could check the dashboard properly.
Thank you for your patience.
Regards,
IsmaelDecember 2, 2020 at 1:55 pm #1264494This reply has been marked as private.December 4, 2020 at 5:28 am #1264942Hi,
Thank you for the update.
1.) Yes, the child theme should be activated, else the modification or the template changes for the portfolio archive page that we just did will not work. Please note that after activating the child theme, you have to import the parent theme options to keep the current layout and configuration of the site. For more info, please check the documentation below regarding child theme installation or activation.
// https://kriesi.at/documentation/enfold/child-theme/
Just to be safe, please create a site backup or a restore point before activating the child theme so that we could revert back to a previous version in case anything goes wrong.
2.) It is up to the developer or the site owner to update the child theme version if they want, but it is not necessary.
Best regards,
IsmaelDecember 16, 2020 at 6:54 pm #1267915Hi,
I finnaly activated the child theme and updated the enfold theme.The child theme has some errors. It created some extra horizontal lines on the menu tabs “projectos” and “contactos”. In private field I attach a link to a document in google drive so you can see what I mean as well as the WP login details so you can check the dashboard properly.
Also I must reinforce, my goal was to achieve a mansonry portfolio gallery not a full width portfolio grid in the portfolio entries.
kind regads,
JoanaDecember 21, 2020 at 7:17 am #1268968Hi,
Sorry for the delay. We modified the taxonomy-portfolio_entries.php file a bit so that it displays the masonry element instead of default post grid.
$atts = array( 'type' => 'grid', 'items' => get_option('posts_per_page'), 'columns' => 3, 'class' => 'avia-builder-el-no-sibling', 'paginate' => 'yes', 'use_main_query_pagination' => 'yes', 'custom_query' => array( 'post__in' => $post_ids, 'post_type' => get_post_types() ) ); $blog = new avia_masonry($atts); $blog->extract_terms(); $blog->query_entries(); echo $blog->html();
We also added this snippet or filter in the functions.php file to adjust the portfolio archive query.
function my_avia_masonry_query_func( $query, $params ) { if(!is_archive()) return $query; global $wp_query; return $wp_query->query; } add_filter( 'avia_masonry_entries_query', 'my_avia_masonry_query_func', 10, 2);
`
See private field.
Best regards,
IsmaelDecember 21, 2020 at 12:06 pm #1268990Hi Ismael,
The end result is exactly the same.
Have you checked my last reply?
With these modifications there is an extra horizontal line in 2 of my 4 navigation tabs.
Also, there is NO mansonry grid.in the categories which was my goal almost 2 months ago.If it’s no doable, I prefer just to go back to orginal grid. At least there were no erros and it looked clean.
Please let me know ASAP.
Thanks,
JoanaDecember 22, 2020 at 5:17 am #1269228Hi,
The end result is exactly the same.
The archive page is now using the masonry element as you can see in the screenshot below.
Screenshot: https://imgur.com/a/OD61OAq
To remove the extra line above the element, use this css code.
.archive .category-term-description { display: none !important; }
If you want to revert back to the default layout, just rename or remove the taxonomy-portfolio_entries.php file in the child theme.
Best regards,
IsmaelJanuary 4, 2021 at 2:34 pm #1270156Hi Ismael,
First of all, I haven´t received any email notification of your reply, so I’m just reading your reply today!
I don’t know how to put it anymore: The site looks BAD! You sent me a printscren that shows exactly why it is Wrong! I already send you several print screens showcasing what I want and what I didnt want. And I simply hate the way it looks now!
So , please, please, please, you already have all my credentials. Could you PLEASE:
1) reverse the layout so the extra horizontal line – it is a layout error!- desapear?! (and I’ve tried your suggestion and I couldn’t put it to work myself);
2) reverse the layout so it turns back into a normal grid inside the container? (simply go back to the original enfold theme code!).Many thanks if you can solve it.
Regards, nad please notify me via email!Joana
January 6, 2021 at 2:47 pm #1270631Hi,
Your original request is to display the Masonry element in the archive page, which is what we did by editing the taxonomy-portfolio_entries.php file. Anyway, we tried to login to the file server today via FTP, but the connection fails.
To revert the layout back to default, just go to the child theme directory and remove the taxonomy-portfolio_entries.php file. Make sure to purge the cache and remove the browser history before checking the archive page again, or do a hard refresh.
Best regards,
IsmaelJanuary 7, 2021 at 1:26 pm #1270858Hi again,
yesterday the server was facing some issues and that is why you couldn’t acess via FTP. Today it is back to normal.1) so, I deleted myself the taxonomy-portfolio_entries.php file and the original grid is back to normal, but
2) I’m unable to delete that extra horizontal lines below my header on 3rd and 4th tab. I posted the css code you provided on quick css on general styling of the enfold child theme, but those error lines are still there. Can you fix it?Regards,
Joana
Please notify me via emailJanuary 11, 2021 at 4:18 am #1271456 -
AuthorPosts
- You must be logged in to reply to this topic.