Is there anyway to add link to phone number on image in mobile header?
Hi,
I do not understand exactly what you would like to do. Please provide more details about this, where exactly you want to add this phone number and what is it supposed to do. There is no default option to add anything else then a logo in the header.
Thanks
Talking about mobile version of http://www.ashtreemd.com
I used a phone number in the form of an image in the header instead of logo and wanted to know if i could make it a phone link. Something like
![]()
or otherwise, the mobile header is very small for our logo, is there anyway to increase its size?
I’m using the Header AD spot in the mobile theme to get around problem but didn’t want to waste space in header area.
FYI my HTML/code knowledge is from 1999/2000 so not that great.
Thanks
Hi,
This is where the link that defines the action when the header logo is clicked on mobile
– https://www.screencast.com/t/PQb3acG8
You could modify the link to have a different action when clicked if that is what you need, and enter the address you want like in this example
– https://www.screencast.com/t/VMg5qSesd62
You could also increase the menu size on mobile by setting a custom value if that could prove useful, like in this example
– https://www.screencast.com/t/KpqTj20wTbiJ using a code like this
– https://www.screencast.com/t/QV4urfiBC
Or maybe you can find a plugin that can be used for this purpose and could display a link how you want it. Please let me know if I could help you further, or have any questions. Also if I misunderstood what you wanted.
Thanks
Hi Catalin,
Thanks for the advice. We’ve made a lot of progress.
1. We’ve updated the theme and are now using version 7.8.1
2. We’ve deactivated WP Supercache while we’re working on the site
3. We created a child theme. Here’s how it looks:
Newspaper-child
….parts
……..header
…………logo-mobile.php
….functions.php
….screenshot.png
….style.css
Contents of style.css:
/*
Theme Name: Newspaper 7 Child theme
Theme URI: http://themeforest.net/user/tagDiv/portfolio
Description: Child theme made by tagDiv
Author: tagDiv
Author URI: http://themeforest.net/user/tagDiv/portfolio
Template: Newspaper
Version: 7.7c
Text Domain: Newspaper-child
*/
/* —————————————————————————-
This file will load automatically when the child theme is active. You can use it
for custom CSS.
*/
Contents of functions.php:
<?php
/* —————————————————————————-
Newspaper V6.3+ Child theme – Please do not use this child theme with older versions of Newspaper Theme
What can be overwritten via the child theme:
– everything from /parts folder
– all the loops (loop.php loop-single-1.php) etc
– please read the child theme documentation: https://forum.tagdiv.com/the-child-theme-support-tutorial/
– the rest of the theme has to be modified via the theme api:
https://forum.tagdiv.com/the-theme-api/
*/
/* —————————————————————————-
add the parent style + style.css from this folder
*/
add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’, 1001);
function theme_enqueue_styles() {
wp_enqueue_style(‘td-theme’, get_template_directory_uri() . ‘/style.css’, ”, TD_THEME_VERSION, ‘all’ );
wp_enqueue_style(‘td-theme-child’, get_stylesheet_directory_uri() . ‘/style.css’, array(‘td-theme’), TD_THEME_VERSION . ‘c’, ‘all’ );
}
When I make changes to parts -> header -> mobile-logo.php those changes are not reflected on the site when I view them from a mobile device.
As an experiment I removed a semicolon from the end of a line in mobile-logo.php to generate a syntax error. Nothing happened on the site.
Digging deeper I went to the parent theme and deleted a semi-colon from the same file to see if it was being picked up there. No dice! After that I went crazy and created several syntax errors in different files to see if I could crash the site. None of my changes had any effect. After that I put everything back.
Is there caching going on somewhere else besides my plugin? What else could be going on to explain that none of my changes at the filesystem level are taking effect?
Hi,
If you have the mobile theme plugin activated then there will be no changes visible when you modify the respective files. The mobile theme uses it’s own files regarding the logo. Unfortunately the mobile theme does not have support for the child theme. Any modifications will have to be made directly to the file
– https://www.screencast.com/t/VBLey0yff1L6
If you want to modify the file you mention, please deactivate the mobile theme and the changes made to it through the child theme, will be visible.
Thanks
Hi,
That could be a possibility in a future update, but I could not say for sure when this will happen. It is up to the developers however to decide what gets implemented as soon as possible and what is postponed, from the list of suggestions and recommendations. In the meantime you will have to make the modifications in the mobile theme files directly.
Thanks