-
AuthorPosts
-
January 19, 2023 at 3:47 pm #1394045
Hey Zdeněk,
Thank you for the inquiry.
Are you trying to hide the folder link from the editor? We may need to access the site and inspect the element in order to provide the required modification. Please provide the site details in the private field.
Best regards,
IsmaelJanuary 19, 2023 at 3:47 pm #1394033Hi Enfold team,
for sorting my media library, pages or Portfolio items I use „Folders“ plugin. One of the feature of this plugin is that I can use the Portfolio items Folders in Masonry.So I have some of the Portfolio items in the Portfolio Category but also in the Portfolio Folders.
In my Portfolio pages I use metadata (category). And there is something where I should your help.
In the metadata in front-end I see not only the Portfolio Category but also the Portfolio Folder => but I don´t want to display the Folders in the metadata.Screenshot here: https://mtsakademie.cz/report/Enfold_Portfolio_Items_and_Folders.pdf
Live site here: https://mtsakademie.cz/nase-sluzby/mts-hubnuti-chuzi/I have discussed that first with „Folders team“, but they told me, that it is not possible to change it, because „The Folders work with the entire Portfolio custom post type”.
I understand and my question is: Is possible to hide it by using css? I would do it myself but there is no special class and I can´t find the right css code.
Thanks a lot,
ZdenekJanuary 20, 2023 at 6:43 am #1394481Hi Ismael,
I am not sure what you exactly mean by “hide the folder link from the editor”, but probably yes. I want to hide the folder link from front-page metadata container.Credintials in the Private Content.
Thank you!
ZdenekJanuary 20, 2023 at 12:14 pm #1394050January 20, 2023 at 12:26 pm #1394505Hi,
Thank you for the info.
We logged in and added this code in the functions.php file.
add_action('admin_head', 'ava_custom_admin_css'); function ava_custom_admin_css() { echo '<style> li[data-slug="vyziva-a-hubnuti-1673934823-1"] { display: none !important; } </style>'; }
This hides the Výživa a Hubnutí link in the dashboard.
Best regards,
IsmaelJanuary 20, 2023 at 4:17 pm #1394565Hi Ismael,
sorry I explained wrong what I need. Your code works in the back-end, but that´s not what I need. I want to hide the link in front-end.See the screenshot here: https://snipboard.io/kL8b4C.jpg
Sorry for misunderstanding, my english is not perfect.
Thanks for you patience!
ZdeněkJanuary 21, 2023 at 7:14 pm #1394654Hi,
Thanks for the update. Was this the same problem which was solved in a different thread?
Best regards,
RikardJanuary 23, 2023 at 7:46 am #1394738Hi Rikard,
this is the same problem, but it was not solved yet.Please keep this thread opened I am still waiting for a solution.
Br,
ZdenekJanuary 24, 2023 at 4:17 am #1394863Hi,
If you want to hide the categories in the frontend, please add this css code.
span.av-post-metadata-category-link { display: none; }
Or use this css code to specifically hide the Výživa a Hubnutí link.
span.av-post-metadata-category-link a[href="https://mtsakademie.cz/?taxonomy=portfolio_folder&term=vyziva-a-hubnuti-1673934823-1"] { display: none; }
Best regards,
IsmaelJanuary 24, 2023 at 6:23 am #1394867Or use this css code to specifically hide the Výživa a Hubnutí link.
span.av-post-metadata-category-link a[href=”https://mtsakademie.cz/?taxonomy=portfolio_folder&term=vyziva-a-hubnuti-1673934823-1″%5D {
display: none;
}That´s what I exactly need, but the code unfortunately does not work. I have also tryied to put there “!important” and also disabled CSS file merging in the theme Performance. Nothing helped.
I also always clear and purge the cash.Zdenek
January 24, 2023 at 6:54 am #1394870Hi,
We tried to login using the account above, but the info seems to be invalid. Please check the account info or provide another admin account.
Best regards,
IsmaelJanuary 24, 2023 at 12:32 pm #1394906I am sorry, you can find it in the Private Content.
Br,
ZdenekJanuary 25, 2023 at 4:22 am #1395038Hi,
Thank you for the update.
We tried purging the plugin cache, but the modification is still not taking effect. It works correctly when we apply it directly in the browser as shown in the screenshot below.
// https://1drv.ms/u/s!AjjTfXSRbKTvz1wRighgecg8-J7b?e=ZrVvhL
Have you tried disabling the plugins temporarily? Is there another cache system in your server that we may not know of.
Best regards,
IsmaelJanuary 27, 2023 at 5:09 am #1395504Hi Ismael,
thank you for your response. I have tryied everything: turned off all the plugins, custom css and php and it still does not work. I have also discussed that with my server support, but there is no special cash which could cause it.
But we see the same behavior as you described; if we put the css code into the google inspector, it works.So I did a test:
In my test page I turned of all the plugins including folders plugin, customizations and switch into parent theme. And I tryied to hide the portfolio category link (https://testweb.mtsakademie.cz/kategorie-sluzeb/lekce-a-kurzy/) by your css code.span.av-post-metadata-category-link a[href="https://mtsakademie.cz/kategorie-sluzeb/lekce-a-kurzy/"] {display: none !important;}
And it also does not work.
So I have tryied another test:
If I exclude from the css this part
[href="https://mtsakademie.cz/kategorie-sluzeb/lekce-a-kurzy/"]
, the css (span.av-post-metadata-category-link a {display: none !important;}
) works correctly!It does not work with this part:
[href="https://mtsakademie.cz/kategorie-sluzeb/lekce-a-kurzy/"]
Credentials into the test page in the Ptivate Content.
Waiting for your answer.
Br,
Zdenek- This reply was modified 1 year, 9 months ago by Zdenek.
January 27, 2023 at 8:31 am #1395533Hi,
When we disabled the Performance > File Compression, the site still loads the compressed and merged files, which tells us that there is a server cache or a feature that preserves the site and database data. Same thing happens when we check the site on private or incognito mode. You might have to keep in touch with your hosting provider and ask them for more information about this.
Best regards,
IsmaelJanuary 27, 2023 at 8:32 am #1395534Hi,
UPDATE: I was checking the live site instead of the test domain. Sorry about that. The css seems to be working correctly now. Please check the link below.
Best regards,
Ismael- This reply was modified 1 year, 9 months ago by Ismael.
January 27, 2023 at 11:21 am #1395552Hi Ismael,
sorry, but it still does not work :( It seems like it is working on the test web, but that´s just because I disabled the folders plugin yesterday – I tryied to test something.I again asked a server support, but there is nothing what could cause the issue. And if any other css works fine, there must be wrong something else.
SO, I have prepared for you absolutely clean wordpress instalation. Using just clean Enfold theme (no child) without any setting. And I installed just the Folders plugin. Nothing else.
And I have tryied your css code. And it does not work!
So the issue must be either in the css code or in the theme => some confict between the enfold theme and the folders plugin.
The folders plugin support told me, that they use portfolio custom post types, so cannot it be somewhere there? I don´t know, just tell you what message I have recieved.Check here: https://test.mtsakademie.cz/portfolio-item/mts-hubnuti-chuzi/
Credentials in the Private Content.
Br,
Zdenek- This reply was modified 1 year, 9 months ago by Zdenek.
February 1, 2023 at 10:08 am #1396172Hi,
We adjusted the css code a bit, seems to be working correctly now.
.av-post-metadata-category-link:nth-child(3) a { display: none !important; }
Unfortunately, it is not possible to remove the comma after the first entry.
Best regards,
IsmaelFebruary 5, 2023 at 1:50 pm #1396739Hi Ismael,
thanks a lot for updating the css code. Now it works.. and I understand it is not possible to also hide the comma, I am ok with it.Thank you and you can close the thread.
ZdenekFebruary 5, 2023 at 2:01 pm #1396741Hi,
Glad Ismael could help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.Best regards,
Mike -
AuthorPosts
- The topic ‘Portfolio Item & Folders plugin Metadata’ is closed to new replies.