• yxda

    (@yxda)


    Hi,
    To protect my phone number I used Email Encoder in Sydney theme by simply placing my phone number in between the two shortcode tags:
    [eeb_protect_content]+1 123 456 7890[/eeb_protect_content]
    It worked fine in the text field, but not in the footer widget field. How can I use it there? I am talking about the phone line in Footer 1.
    Thank you for your help in advance,

Viewing 12 replies - 1 through 12 (of 12 total)
  • Hello there,

    Did you use Text widgget and enabled Text mode when inserted that shortcode?

    The issue might be with the plugin’s code. Have you reported it to its author?

    Regards,
    Kharis

    Thread Starter yxda

    (@yxda)

    Thank you Kharis,
    that could have been the problem. I just inserted the short code with the phone number in the Appearance/Widget/Footer 1/Sydney/Contact info field before. Now,I am using text widget and wondering how I can have the phone icon and the mail icon in front of my phone number and email address if I use the text widget instead of the contact widget. The protection problem is solved at least and working fine just as you suggested. Thank you

    Thread Starter yxda

    (@yxda)

    One more question: Since it is quite a hassle in Sydney to insert a logo and text next to its right I created a picture containing my logo and the text and I used this picture as a logo. I also used site title and tagline in Customizing; however, I still get the message that I do not have H1 tag on my front page and it is a critical error. How can I fix this? If site title is not displayed because of the logo, my site title is not even recognized?

    Hello there,

    To maintain the H1 tag on site name presents when logo enabled, follow the steps I wrote in this thread on our own support channel:

    https://forums.athemes.com/t/seo-reports-show-no-h1-tag-in-use/14257/2

    Regards,
    Kharis

    Thread Starter yxda

    (@yxda)

    Thanks Kharis.

    I tried as you advised adding the followings in header.php

    <h1 class=”site-title” style=”position:absolute; top:-9999px;”>” rel=”home”><?php bloginfo( ‘name’ ); ?></h1>

    <?php if ( get_theme_mod(‘site_logo’) ) : ?>

    Unfortunately, I am getting the following error: “Unable to communicate back with site to check for fatal errors, so the PHP change was reverted. You will need to upload your PHP file change by some other means, such as by using SFTP.”
    What could be the problem?

    Hello there,

    Probably you edited the code incorrectly in the header.php file. Access your site’s FTP and go to wp-content/themes/sydney folder. Then upload the original file of header.php, which you can get from this link.

    Regards,
    Kharis

    Thread Starter yxda

    (@yxda)

    Thank you Kharis. I am using a child theme. Should I upload the original file you gave me through a link in the sydney folder or in the sydney child folder? Now, I have header.php in both folders.
    Thank you

    Thread Starter yxda

    (@yxda)

    I think I inserted the code in the wrong line. Now, it seems working when I check the page in https://www.seoreviewtools.com/html-headings-checker/
    Thanks for your help

    Thread Starter yxda

    (@yxda)

    One problem occured though on the other pages. Multiple H1 headings found on the pages. I have two H1 headings, the site title and the page title. Since site title is in the header it repeats on all pages. Should I start each page with H2 heading as page title or would that mess up things more? Or can I use site title in the header for only the landing page(front page)? Would that one be better?

    Hello there,

    Try replacing this line of code:

    
    <h1 class="site-title" style="position:absolute; top:-9999px;"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    

    with:

    
    <?php if( is_front_page()  ): ?>
    <h1 class="site-title" style="position:absolute; top:-9999px;"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
    <?php endif; ?>	
    

    Regards,
    Kharis

    Thread Starter yxda

    (@yxda)

    Super. Now, it’s working. Thanks for your help.

    You’re welcome!

    Please let us know in a new topic if you have any further questions, or if we can provide you with any other assistance.

    Regards,
    Kharis

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Protecting phone number in Sydney’ is closed to new replies.