K
K
Konstantin Teploukhov2018-05-24 19:10:24
WordPress
Konstantin Teploukhov, 2018-05-24 19:10:24

Editable phone number in header and footer, how?

Sorry again
Это уже 3 / 4 мой вопрос на WP за сегодня ... сорри ребят (зато за сегодня я апнулся больше чем за всю прошлую неделю)

Guys, if in the header (header.php) and in the footer (footer.php) the phone number is (the same). It's not a link, it's just wrapped in a span tag. How can I implement its editing through the admin panel?
Tried through the customizer ... did not work. It didn't work with the free ACF plugin either.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2018-05-24
@webfellix

1. you can use wp custom fields and display them (you can do them in the admin panel on the Contacts page, and display them where necessary).
2. The same with ACF (simplicity and convenience)
3. Creating a custom page in wp to display settings
4. Using the same ACF, creating an options page https://www.advancedcustomfields.com/resources/opt...
and output on it all the fields that are needed for the site
I think for each custom field to create records is nonsense)

E
Evgeniy Skorobogatov, 2018-05-24
@NetSky

create a page where the title is the phone number and in the template you pull it by id

<?php
$my_id = 7;
$post_id_7 = get_post($my_id); 
$telefon = $post_id_7->post_title;
?>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question