Tagged: 

Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • #730897

    Hi,

    I have made a website audit with SEMrush website and he say there’re many pages with more than one H1.

    For this reason, i want change the title H1 (post and portfolio title ) to H2

    There’re a post for the ENFOLD Theme here > https://kriesi.at/support/topic/ (Purchase code hidden if logged out)(Purchase code hidden if logged out) -with-h1/#post-23260

    Can i use the same code, or there’re a different code for Eunoia Theme ?

    Best regards,

    : )

    #730914

    Hi MoiMM!

    We are afraid it is not the same code.
    You will have to either hire someone to help you, or we can try alter the tags with JQuery but we will have to take a look and see how easy it is.

    Thank u

    Regards,
    Basilis

    #733740

    Hi Basilis,

    A little Up for this post.
    Have you find a solution ?

    Best regards,
    Stephane : )

    #733808

    Hi,

    Would you mind providing a precise link to your site, showing the elements in question? We need to be able to inspect them in order to help :)

    Best regards,
    Vinay

    #733809

    Hi Vinay,

    Yes my website is here > https://w w w .vendran.com

    Best regards,
    Stephane : )

    #733973

    Hi,

    Please try adding this at the very end of your themes / child themes functions.php file:

    function h1_to_h2(){
    ?>
    <script>
    jQuery(document).ready(function(){
      $(function () {
                $(".portfolio-sort-container").click(function () {
                    $("h1").replaceWith(function () {
                        return "<h2>" + $(this).text() + "</h2>";
                    });
                });
            });
    });
    </script>
    <?php
    }
    add_action('wp_head', 'h1_to_h2');

    If you still have any issue Please post us your login credentials (in the “private data” field), so we can take a look at your backend.

    Login credentials include:

    • The URL to the login screen.
    • A valid username (with full administration capabilities).
    • As well as a password for that username.
    • permission to deactivate plugins if necessary.

    Best regards,
    Vinay

    #734268

    Hi Vinay,
    Thx a lot for your answer.
    I have put the code in the functions.php but that change nothing.

    It’s always H1 for portfolio, post… titles.
    I have delete the website cache but no changes.

    For a admin login, you can use the WP admin that you find in this post
    > https://kriesi.at/support/topic/ (Purchase code hidden if logged out) -slug/#post-731277

    Best regards,
    Stephane

    #734287

    Hey!

    Please go to Appearance > Editor and edit functions-eunoia.php file and search “main-title” and change h1 tags to h2

    Cheers!
    Yigit

    #734309

    Hi Ygit,

    I have change 2 codes in function-eunioa.php and where i have change h1 to h2

    	function avia_title($args = false, $id = false)
    	{
    		global $avia_config;
    		
    		if(!$id) $id = avia_get_the_id();
    		
    		
    		$defaults 	 = array(
    		
    			'title' 		=> get_the_title($id),
    			'subtitle' 		=> "", //avia_post_meta($id, 'subtitle'),
    			'link'			=> get_permalink($id),
    			'html'			=> "<div class='{class} title_container'><div class='container'><h2 class='main-title'>{title}</h2>{additions}</div></div>",
    			'class'			=> 'stretch_full container_wrap main_color '.avia_is_dark_bg('main_color', true),
    			'breadcrumb'	=> false,
    			'additions'		=> "",
    			'shadow'		=> true
    			
    		);

    Line 73
    echo avia_title(array(‘class’=>’portfolio-title’, ‘html’ => “<div class='{class} title_container’><h2 class=’main-title’>{title}</h2></div>”), $id);

    But no change ! :(
    No change with or without the Vinay’s code in functions.php

    Best regards,
    Stephane

    • This reply was modified 2 years, 5 months ago by  MoiMM.
    #734322

    Hey!

    If you do not mind, can you please post FTP and WP admin logins here privately so we can look into it?

    Best regards,
    Yigit

    #734325

    Hi again Ygit,

    For a admin login, you can use the WP admin that you find in this post
    > https://kriesi.at/support/topic/ (Purchase code hidden if logged out) -slug/#post-731277

    #734330

    Hey!

    I removed the code Vinay posted above from functions.php file then edited functions-eunoia.php file eunoia/includes/loop-portfolio.php and eunoia/includes/related-posts.php files and flushed cache on WP Rocket plugin. Please review your website now :)

    Best regards,
    Yigit

    #734337

    Hey hey hey Digit ! ;)

    It’s perfect for portfolio title it’s H2 but little problem for post title (blog)
    The Blog title (main-title) is H2 and Article blog title (post-title) is alway H1

    Just a little issue with portfolio title, now on hover the text stay grey and don’t change to white
    (grey on green is not lisible)

    Thx for your help !

    Stephane : )

    #734343

    Hey!

    Please add following code to Quick CSS in Eunoia theme options > Styling tab

    .main_color .portfolio-sort-container .inner-entry:hover .main-title a {
        color: white!important;
    }

    Edit: You would like to change “Article blog title” to H2 as well, is that correct? If so, please post a link to your page and point out the title you would like to change :)

    Cheers!
    Yigit

    • This reply was modified 2 years, 5 months ago by  Yigit.
    #734359

    Hoy !

    Yigit, can you re-open this thread https://kriesi.at/support/topic/ (Purchase code hidden if logged out) -slug/#post-734353 please !?
    I have write my last answer before to test the plugin ! :(

    I have install the WP Change Custom Posts Slugs plugin ( and other) and i can’t change the “Portfolio_entries” slug !

    Sorry for the off topic
    Stephane

    #734364

    Perfect for the css ! :)

    For the blog title H2 and Post title H1 i have made a screenshot to show you the issue
    > https://www.evernote.com/l/ACW2f2_gwihIiLDdf0qRtPjdfaCJrqwCcUUB/image.png

    :)

    #734764

    Hi,

    I opened other thread :)

    I also edited eunoia/includes/helper-post-format.php file and flushed cache. Please review your website now

    Best regards,
    Yigit

    #734918

    Hi Ygit,

    After a little change in functions-eunoia.php all is apparently ok now for blog.
    I have H1 for blog title and after H2 for the posts title !

    Good job ! ;)

    #734921

    Hi!

    Great! Let us know if you have any other questions :)

    Cheers!
    Yigit

Viewing 19 posts - 1 through 19 (of 19 total)

The topic ‘Change H1 post title and H1 portfolio title to H2’ is closed to new replies.