as

Saturday 29 July 2017

How to update the Wordpress theme to change the font and add extra html code

To update the Wordpress theme, you need to do below things.
  1. Go to Wordpress admin
  2. Go to Appearance->Editor.
  3. There you will find lots of files like header.php, content.php and sidebar.php
  4. So you can change these files and changes will be applied to all of your pages and posts
I added 3 divs in above files.
2 divs were added right after  <?php dynamic_sidebar( 'sidebar-2' ); ?>  and at the end of sidebar.php
1 div was added in header.php just before site main
1 div was added in content.php just after entry title


Similarly you can add any html.

Similarly if you want to change the font of wordpress site, you can edit below file.
Just go to https://fonts.google.com and select the required font.
Then update your style.css file with below line

  1. body{
  2. font-family: 'Roboto', sans-serif;
  3. }
  4.  
and also make sure you add the link in header.php.
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">

What do you think on this topic? Please express your opinion or ask any question through comment below. You can write to me at reply2sagar@gmail.com

Sponsored Links

Popular Posts

Comments

ShareThis