Forum Replies Created
-
AuthorPosts
-
The problem now is that I have three versions of the content in if(!function_exists(‘avia_ajax_search’)) in functions-enfold.php, which makes it difficult to compare them and know what to keep and what to delete:
1) The orginial from version 2.4.1
2) The modified version 2.4.1 with custom code added by the person why made my webpage
3) The newest version of functions-enfold.php from the current Enfold themeI see there have been some modifications in of the content in if(!function_exists(‘avia_ajax_search’)) from version 2.4.1 to the latest Enfold version. Do you think it might work to simply replace the content in if(!function_exists(‘avia_ajax_search’)) in functions-enfold.php in my child theme with the version that the person who made my webpage some years ago created? Or do I need to compare it with the changes in the newest version of Enfold as well?
If I only want to modify the content in if(!function_exists(‘avia_ajax_search’)) in functions-enfold.php, do I only include that part in my child theme functions-enfold.php or should I include all the contact from the functions-enfold.php in my child theme as well? For functions.php I see that I only include my own functions in the child theme, so this file does not replace functions.php in the original theme files but just add on to it?
- This reply was modified 5 years, 5 months ago by guttogjente.
This reply has been marked as private.Thanks! It had to do with the plugin Custom Sidebars, so I made a new sidebar in another widget and chose that one as the sidebar for this page to get the correct formating. This case can be closed.
This reply has been marked as private.Thanks for the reply. I could not understand why I should make a function to disable the sidebar. I want to display the sidebar, but there is a problem with choosing sidebar for the Archive pages in the plugin. But you can close this case, it is not so important.
Yes, they answered at their support: “Did they maybe suggest what modification needs to be done on our side? I can see the issue with Enfold theme enabled. I will report this to the developer of Custom Sidebars, however, it might be not possible to fix this on our side.” You can see the full dialogue at their support here:
This is how it should look (it looks like this by default, I have not applied any custom styling):
This is how it looks currently:
April 29, 2019 at 3:19 pm in reply to: Remove date from blog grid layout and search results #1095310Thanks, that worked when I put the css in the child theme css file (put not when I put it in the quick css, although I cleared cache). This case can be closed.
Thank you for the great job you do at the support, much appreciated! This case can be closed
April 27, 2019 at 2:05 am in reply to: How to add search bar to existing column in Layout Builder #1094855Excellent instruction, it worked well! Thank you for the great job you do at the support, much appreciated! This case can be closed
April 27, 2019 at 2:04 am in reply to: Color of search box and menu underline changed when I switched to child theme #1094854Thank you for the great job you do at the support, much appreciated! This case can be closed
Thank you for the great job you do at the support, much appreciated! This case can be closed
April 27, 2019 at 2:02 am in reply to: Display different widget in sidebar for custom post type #1094852Thank you for the great job you do at the support, much appreciated! This case can be closed
Thank you for the great job you do at the support, much appreciated! This case can be closed
April 27, 2019 at 2:00 am in reply to: Custom post type does not display correct after update #1094850Thank you for the great job you do at the support, much appreciated! This case can be closed
It works excellent! Thank you for the great job you do at the support, much appreciated! This case can be closed
Okay, I understand. Thank you for the great job you do at the support, much appreciated! This case can be closed
April 26, 2019 at 1:38 am in reply to: Remove date from blog grid layout and search results #1094569That is strange, but I understand you can not help when you don’t see the same as I see. Would appreciate if you can check with others. I tried now on 2 computers, Windows 10 with Google Chrome, and the dates still show up on all those pages mentioned in my last reply
and also under the article title at the front page https://www.guttogjente.no/. Would appreciate if you can check with others. It is only at the grid layout on https://www.guttogjente.no/artikler/ that the dates have been successfully removed.April 25, 2019 at 4:19 am in reply to: Remove date from blog grid layout and search results #1094278I have tried clearing cache several times and also tried in different browsers. The dates are still visible on all these pages for me:
Search: https://www.guttogjente.no/?s=grenser
Archieve: https://www.guttogjente.no/spm-og-svar/
Archieve2: https://www.guttogjente.no/spm-og-svar/spm-og-svar/
I shared my login details above, could you please log in and have a try? Thank for you so much for your help!April 25, 2019 at 3:58 am in reply to: Translation issue in social media heading in blog post #1094274Thanks for your patient help! I first got a HTTP 500 error, but then I discovered that I had another function with the same name. Then I made it work when I changed the function name, but the social icons was hiding under the footer. I have decided to keep it as it was, since this modification also created an empty white space where the icons had been before. I keep the social sharing icons as a section separator. You can close this case.
April 24, 2019 at 3:24 pm in reply to: Remove date from blog grid layout and search results #1094016I used the inspector and tried to remove the date from this archive page as well: https://www.guttogjente.no/spm-og-svar/spm-og-svar/
I added the following css, but I don’t know why it did not work:time.slide-meta-time.updated{ display:none!important; } time.date-container.minor-meta.updated{ display:none!important; }
I also tried with:
.slide-meta-time.updated{ display:none!important; } .date-container.minor-meta.updated{ display:none!important; }
This reply has been marked as private.April 24, 2019 at 3:09 pm in reply to: Translation issue in social media heading in blog post #1094004Thanks, that worked well. Really appreciate your good help! I just changed the text to “Del dette innlegget”. I would like to have the social icons at the very end of the page, meaning after the last line “Vennlig hilsen Guttogjente.no” at the page https://www.guttogjente.no/sporsmal-og-svar/hjelp-med-identitet-og-relasjoner/ as an example. The custom field is the text that currently is displayed after the social media icons.
April 24, 2019 at 2:49 pm in reply to: Remove date from blog grid layout and search results #1093986This reply has been marked as private.In the css I have added:
/* The sticky class is added to the header with JS when it reaches its scroll position */ .sticky { position: fixed; top: 0; width: 100% }
In my_custom.js I have added:
(function( $ ) { "use strict"; $(function() { // When the user scrolls the page, execute myFunction window.onscroll = function() {myFunction()}; // Get the sidebar var sidebar = document.getElementsByClassName("widget_nav_menu"); // Get the offset position of the navbar var sticky = sidebar.offsetTop; // Add the sticky class to the sidebar when you reach its scroll position. Remove "sticky" when you leave the scroll position function myFunction() { if (window.pageYOffset > sticky) { sidebar.classList.add("sticky"); } else { sidebar.classList.remove("sticky"); } } }); }(jQuery));
I tried this code, but it did not seem to work even if I cleared cache.
April 23, 2019 at 4:50 am in reply to: Translation issue in social media heading in blog post #1093505This reply has been marked as private.April 23, 2019 at 4:24 am in reply to: Remove date from blog grid layout and search results #1093500Thanks for the reply, I tried to add this to the css file in my child theme, but the dates are still there after I cleared cache. See screenshots and links.
This problem disappeared when I deactivated all my plugins.
April 19, 2019 at 10:39 am in reply to: Custom post type does not display correct after update #1092657I see some others ask about Advanced Custom Fields, so for their reference the solution was to insert <?php the_field(‘svar_til_brukeren’); ?> in single.php in the child theme, where “svar_til_brukeren” is my custom field. See https://www.youtube.com/watch?v=w1uKdCfZB5c which helped me
- This reply was modified 5 years, 7 months ago by guttogjente.
-
AuthorPosts