Viewing 25 posts - 1 through 25 (of 25 total)
  • Author
    Posts
  • #1184748

    Hello, In wich way i can remove default title h3 on archieve pages?

    #1184828

    Hey sacha,

    Could you please give us a link to your website, we need more context to be able to help you.

    Best regards,
    Victoria

    #1190355

    Hello,
    In this kind of Pages ( Portfolio Categories) I wish to remove the default written ” ELEMENTI DI PORTFOLIO”
    Kindly
    Sacha

    #1191186

    Hi,
    Sorry for the late reply, do you want to remove the text “Elementi di portfolio” or just the H3 that wraps it?
    Since this is your title for your portfolio page you should be able to remove the whole element by changing the “title” option for the page. Try setting to “hide both”:
    2020-03-07_173145.png

    Best regards,
    Mike

    #1191191

    Hello Mike,
    Nice to See you!
    I wish to remove permanently the text “ELEMENTIDI PORTFOLIO”

    It is a portfolio category, an archieve page.
    I cannot try the title bar setting, into portfolio categories.
    ——————————————————————————————————————————-

    *I would like to take advantage that you took the answer to ask yourself something.
    Some time ago you had done me a great job that was needed to create the alt and title tags in the images by hooking up to add to any.
    Now I should remove it because it is no longer needed, and I uninstalled ad to any, so now the images have titles with “undefined” at the end,
    I would like to restore those parts that had been modified to perform this function, only that I don’t know which files you had touched and how to restore this function as it was before.
    Can you explain what to do so I can tell my developers?
    Many Thanks Mike

    #1191247

    Hi,
    To remove the archive post title Try adding this code to the end of your functions.php file in Appearance > Editor:

    function remove_archive_post_title(){
      ?>
      <script>
    (function($){
      $(document).ready(function(){
      $('#top.archive h3.post-title.tag-page-post-type-title').remove();
      });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'remove_archive_post_title');

    please ensure that your Enfold Theme Options > Performance > Load jQuery in your footer is not checked and none of your caching plugins or minifying plugins are moving the jQuery to the footer.

    For your second question, I had changed the alt and title tags in the images, and now you want to remove this and allow the alt and title tags to be natural?
    I’m sure I did this with jQuery like above, but I don’t recall exactly as it was some time ago, If I can login and look at your scripts I can probably find the right one to remove.

    Best regards,
    Mike

    #1191256

    Hello Mike!
    Thanks a lot for your answers:

    1) To remove the archive post title:
    Is there a way to remove the “ELELEMNTI PORTFOLIO” whritten in archieve page but Without adding other code but rather removing what creates the default title? to be clearer, I didn’t write “PORTFOLIO ELEMENTS” anywhere, and I would like to remove that one.

    2) I put the admin in privat in order to find the code to remove.

    Sincerly,
    Sacha

    • This reply was modified 4 years, 9 months ago by Marco.
    #1191273

    Hi,
    Sorry I’m not sure I understand, the script above removes the title container “ELELEMNTI PORTFOLIO” and doesn’t add anything, the only other way to remove the title container is to edit the archive.php and remove echo avia_title(array('title' => avia_which_archive())); from line 20 then place this modified file in your child theme.
    Thanks for the login, I believe I fould the code and commented it out, please clear your browser cache and check. If this is correct I can remove it completely.

    function article_titles_attr(){
      ?>
      <script>
    (function($){
      $(document).ready(function(){
      $(".slide-entry").each(function(){
        var space = " ", returnValue = "";
        var pagetitle = $(".a2a_kit").attr("data-a2a-title");
        var captiontext = $(this).find("h3.slide-entry-title").text();
        $(this).find("img").attr("title",captiontext + space + pagetitle );
    	  $(this).find("img").attr("alt",captiontext + space + pagetitle);
    
    });
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'article_titles_attr');
    
    function magazine_titles_attr(){
      ?>
      <script>
    (function($){
      $(document).ready(function(){
      $(".av-magazine-entry").each(function(){
        var space = " ", returnValue = "";
        var pagetitle = $(".a2a_kit").attr("data-a2a-title");
        var captiontext = $(this).find("h3.av-magazine-title").text();
        $(this).find("img").attr("title",captiontext + space + pagetitle);
    	  $(this).find("img").attr("alt",captiontext + space + pagetitle);
    
    });
    });
    })(jQuery);
    </script>
    <?php
    }
    add_action('wp_footer', 'magazine_titles_attr');

    Best regards,
    Mike

    #1191276

    Many Thanks Mike, You are always my favorite .

    1) I I tried to remove the line you indicated in the Archieve.php file, but nothing has changed.
    I am not sure if you understood my need, I would not want the words “PORTFOLIO ELEMENTS” to appear as highlighted in the screenshot that I sent you in the form of a Link

    2) .unfortunately something is still missing, now the title tags of the images are not shown, not even the predefined ones written in the image files. I would like title tags to be there as they are written in them

    Sincerly,
    Sacha

    #1191282

    Hi,
    1) ok, Archieve.php didn’t work, do you want to try the script I added above that removes the “PORTFOLIO ELEMENTS” ?
    2) I believe your Autoptimize or some caching is still serving the code I commented out, can we disable Autoptimize while testing?
    The titles for the image links are returning empty but I not seeing any code to do that. I have some code that gets the alt caption of the image and copies it to the link title for the same image.
    if we need it.

    Best regards,
    Mike

    #1191436

    Hello Mike!
    Many thanks for your worck.

    1) Forgive me but I’m not sure, I wouldn’t add more code for fear of slowing down the site. I remember when I wasn’t using the child theme yet, a developer who finds the words “portfolio elements” in a theme file and just deletes them … but I can’t say which file it was in.
    If you are sure there are no other ways, I will try the code above.

    2) Yes, sure, you can deactivate autoptimize and Cache Enabler too for test.
    Sorry , enfold, Shouldn’t the titles written in the images show by default?
    if this should be the case, maybe the files related to the article galleries could be put back as default by enfold, because the galleries are giving different problems and maybe something is wrong. have notice when scanning with check sites for words (https://www.seoreviewtools.com/keyword-density-checker/) the reading words that really should not be there, and it seems that this is due to the galleries , and then make any lost customizations.
    If there are no alternatives, we can try the code you mentioned to generate the caption. But I always have to be careful about the loading speed.

    Many thanks Mike
    Have a beautiful week!

    #1191827

    Hi,
    I see that you are using v4.6.3.1, please update to v4.7.3 and provide ftp access so I can temporarily remove your custom postslider.php to see if this brings the post titles back. There have been many changes in the postslider.php since your version so I can’t tell what was changed in your file.
    I’m pretty sure that only changes I recommended before were jQuery, so disabling these should have restored these unless there was an underlying issue with v4.6.3.1 at the same time.

    Best regards,
    Mike

    #1191914
    This reply has been marked as private.
    #1192527

    Hi,
    Thank you, but the FTP login doesn’t seem to be working, please check.

    Best regards,
    Mike

    #1192536

    Sorry Mike,
    I have just verified the new accont for you.
    I put new credential on private.

    Sincerly
    S.

    #1192675

    Hello Mike!
    How are you?
    I hope is ok for you..

    I am writing to you because I had opened another topic for another problem to solve, ( https://kriesi.at/support/topic/ajax-research-redirect-to-the-search-page-seems-that-the-search-does-not-respon/#post-1192672 ) but I am afraid that you will intervene in 2 by canceling one another’s work.
    I insert here the link of the other topic, so that you can see what it is; and possibly if possible, communicate with Yigit, so that it is a coordinated job, or done by one of you.

    Sincerly,
    S.

    #1192871

    Hi,
    Thank you for the ftp access, on the topic of restoring the title attribute to the linked thumbnails of your blog posts such as the link in the Private Content area, I found that the postslider.php was missing the title attribute on line 699 $title
    I have adjusted your child theme postslider.php so your natural titles will show.
    I also found that to remove the “portfolio elements” from the same page the “tag.php” needed to be adjusted, I did this and added the file to your child theme, so now the heading doesn’t show and no scripts or css is used to hide it, as requested.
    I reenabled all of your plugins and customizations except for the two jQuery scripts that you didn’t want to use anymore in your original request.
    Please clear your browser cache and check.

    Best regards,
    Mike

    #1192895

    Hi Mike!

    Mike- on the topic of restoring the title attribute to the linked thumbnails of your blog posts such as the link in the Private Content area, I found that the postslider.php was missing the title attribute on line 699 $title
    I have adjusted your child theme postslider.php so your natural titles will show.

    -S. Ok perfect, it now goes well. well done Mike!.
    ——————————————————-
    Mike- I also found that to remove the “portfolio elements” from the same page the “tag.php” needed to be adjusted, I did this and added the file to your child theme, so now the heading doesn’t show and no scripts or css is used to hide it, as requested.

    S.-Perfect, exactly what I wanted!
    ———————————————————
    Mike- I reenabled all of your plugins and customizations except for the two jQuery scripts that you didn’t want to use anymore in your original request.
    Please clear your browser cache and check.
    s.- Yes, the image title tags are now correct, Even the wording “portfolio elements” by default inside the tags, has disappeared, and removed even in the child thme so it will no longer appear.
    Everything seems to be working
    —————————————————————
    But I think there are still personalization files that create problems:

    Problem 1) – Analyzing portfolio articles (see link, 1 and link 2 in private)
    They appear in the header of hidden links that should not be there, these disappear if within the dashboard in the single portfolio article, set the command to “hide the header” (Link 3), if you want to try to see the difference in the analysis of the page, changing the settings to show or not show the header.
     -The problem is that I have thousands of articles and I would like to avoid going into all of them to “hide the magazine”, is there a way to do it for all the portfolio items?

    Problem 2 or 1b) – Linked to the problem of the header in the portfolio articles, it is noted that by inspecting the pages of the site with specific sites (see link 4 and try scanning a page “example link 5), hidden words appear that should not be present, (81 times the site name, 69 times the word “agrave” and others) This is a problem for my seo technician who is unable to have a clear keyword analysis.
    Is possible solve this problem?

    Problem 3) Do you still see the jS error that Yigit saw in this discussion? https://kriesi.at/support/topic/ajax-research-redirect-to-the-search-page-seems-that-the-search-does-not-respon/#post-1192685

    Conclusions:
    if you could check all the customization files, including css and delete those (or specific functions) that can create problems, and keep only those that are definitely going well, it would be great for me ..

    Unfortunately I have heard more developers and no one seems to be able to work well.

    thanks Mike

    I am confident in your work.
    I stay on hold.

    Best regards,
    S.

    #1193115

    Hi,
    Thank you for the links, I see that you have a menu hidden with your header, but you don’t have any menus created because you don’t use any menus. Please try creating a new menu with no menu links and then assign it to your main menu.
    Since the headers are hidden the menu should also be, but now in the source code, there shouldn’t be any links.

    Best regards,
    Mike

    #1193117

    Problem 1) – , Thanks, Make a new empity menu were the solution! Perfect Mike ! Thanks.

    Problem 2) There is Similar problem into all pages;
    by inspecting the pages of the site with specific cecher sites (see link 4 and try scanning a page “example link 5), hidden words appear that should not be present, (81 times the site name, 69 times the word “agrave” and others) …
    is it possible to clean it?

    Problem 3) Do you still see the jS error that Yigit saw in this discussion?

    Forgive me, I’m not sure if I can see Js Errors..

    Many thans Mike…
    Best regards
    S.

    #1193232

    Hi,
    Problem 2) I used your keyword checker and used your page link, but I don’t know your language so I wouldn’t know which words are yours. But I don’t find “agrave” on your page like the keyword checker says.
    Problem 3) no I don’t.
    Best regards,
    Mike

    #1193518

    Hello Mike !
    I hope is a really good day for you!
    Many thanks for your help!

    Problem 3)
    I have checked the home-page using google chrome tools js and found this error:
    Uncaught ReferenceError: jQuery is not defined
    at (index):153
    (index):471 Uncaught ReferenceError: jQuery is not defined
    at (index):471
    I have found that the errors is only into my enfold-child,
    Afer I have ceched a second Page and find this:
    (index):156 Uncaught ReferenceError: jQuery is not defined
    at (index):156
    (anonymous) @ (index):156
    (index):751 Uncaught ReferenceError: jQuery is not defined
    at (index):751

    I checked both Enfold And Enfold-Child, without plugin ( except for shortpixel)
    These problems appears only in the Enfold-Child.
    So I think it is about a feu js codes into my custom file.
    Could you please tell me in wich way I can solve this? or, if you can, solve this for me?
    ———————————————————————–
    Problem 2)
    Yes Mike, this is the problem, the word ( Agrave does not exist in my site ), In the same way I don’t have my site name repeated 77 times, but only 3 times….
    My developer says this is very strange, and I am afraid that even google bots can read the same repeated words that in reality are not there. What can be the cause it?

    Best regards,
    S.

    #1193777

    Hi,
    The errors were caused by your “Async JavaScript” & Autoptimize plugins, Async JavaScript needs to be set to “Defer” and Autoptimize needs to have ”
    Ottimizzare il codice JavaScript?” and “Minify excluded CSS and JS files?” off, otherwise, the JQuery doesn’t load correctly.
    This is common for Autoptimize.
    I checked your homepage with a different keyword tool and “Agrave” was not found, so I’m not sure what to make of this.

    Best regards,
    Mike

    #1193813

    Hello Mike!
    Mny thanks for your help.
    well done, 2 Js Errors are solved,
    – but with these changes, now appears this Js error:
    Uncaught TypeError: t.AviaTooltip is not a constructor
    at HTMLDocument.<anonymous> (avia-footer-scripts-1bc06c48412e8e2b10d52187e577b9ed—5e70b61ec198e.js:2)
    at i (jquery.js?ver=1.12.4-wp:2)
    at Object.add [as done] (jquery.js?ver=1.12.4-wp:2)
    at n.fn.init.n.fn.ready (jquery.js?ver=1.12.4-wp:2)
    at avia-footer-scripts-1bc06c48412e8e2b10d52187e577b9ed—5e70b61ec198e.js:1
    at avia-footer-scripts-1bc06c48412e8e2b10d52187e577b9ed—5e70b61ec198e.js:29
    —–
    I saw that you had already put the correct settings in autooptimize and Asynk Javascript,
    By changing those settings, I have activated the optimization of the javascript code from enfold-child Joining Javascript files and compression, to always have optimized javascript.
    then I noticed that the lazy load of the images no longer worked and I activated it in Autoptimize. But I have to exclude masonry galleries from slow loading (they don’t work with lazy load) and I can’t find the exact name to be included in Autooptimize exclusions. Maybe you can enter it?

    So far I think all is well (although I prefer your confirmation :-))
    I did a tour on the site and ajax recearch no longer works well, not from the previews on the same page; I’d like to avoid sending visitors to the search page, because there would be too many slow queries.
    Best regards,
    S.

    #1194092

    Hi,
    Sorry, I don’t see this error on your site. I recommend disabling the parts of the plugins I wrote about above, other than that I don’t have any customization suggestions for these plugins.
    This thread has covered many different topics, so I recommend closing this thread and if you have any other questions please open a new thread so we can focus on one issue per thread.
    Thanks for your understanding.

    Best regards,
    Mike

Viewing 25 posts - 1 through 25 (of 25 total)
  • The topic ‘Hello, In wich way i can remove default title h3 on archieve pages?’ is closed to new replies.