[{"data":1,"prerenderedAt":11},["ShallowReactive",2],{"$f27gccrlq59um3":3},{"slug":4,"title":5,"description":6,"published":7,"updated":8,"thumb":9,"html":10},"how-to-display-different-header-content-on-different-wordpress-pages","How To Display Different Header Content On Different WordPress Pages","In order to get different text, image or hmtl code on a given page, you can use is_page function. Here is a sample way on how you can do create separate...","2015-04-07","2016-06-17",null,"\u003Cp>In order to get different text, image or hmtl code on a given page, you can use is_page function. Here is a sample way on how you can do create separate telephone numbers on different pages on a WordPress website. (The code below goes anywhere on the page header, footer or any area that can execute a php file.\u003C\u002Fp>\n\u003Cp>We are using Page Slugs (URL pattern). You can also use page ID.\u003C\u002Fp>\n\u003Cp>\u003Ccode>\u003Cbr \u002F>\n\u003C?php\nif(is_page('hp-printer-support')){\n echo '\n\u003Cp>Toll Free: 000-000-0000\u003C\u002Fp>\n\u003Cp>';\u003Cbr \u002F>\n}\u003Cbr \u002F>\nelseif(is_page('epson-printer-support')){\u003Cbr \u002F>\n echo '\u003C\u002Fp>\n\u003Cp>Toll Free: 000-000-0000\u003C\u002Fp>\n\u003Cp>';\u003Cbr \u002F>\n}\u003Cbr \u002F>\nelseif(is_page('canon-printer-support')){\u003Cbr \u002F>\n echo '\u003C\u002Fp>\n\u003Cp>Toll Free: 000-000-0000\u003C\u002Fp>\n\u003Cp>';\u003Cbr \u002F>\n}\u003Cbr \u002F>\nelseif(is_page('brother-printer-support')){\u003Cbr \u002F>\n echo '\u003C\u002Fp>\n\u003Cp>Toll Free: 000-000-0000\u003C\u002Fp>\n\u003Cp>';\u003Cbr \u002F>\n}\u003Cbr \u002F>\nelseif(is_page('lexmark-printer-support')){\u003Cbr \u002F>\n echo '\u003C\u002Fp>\n\u003Cp>Toll Free: 000-000-0000\u003C\u002Fp>\n\u003Cp>';\u003Cbr \u002F>\n}\u003Cbr \u002F>\nelse {\u003Cbr \u002F>\n echo '\u003C\u002Fp>\n\u003Cp>Toll Free: 000-000-0000\u003C\u002Fp>\n\u003Cp>';\u003Cbr \u002F>\n}\u003Cbr \u002F>\n?>\u003C\u002Fp>\n\u003Cp>\u003C\u002Fcode>\u003C\u002Fp>",1793901039329]