I need to access/edit the HTML code of page Templates which are written in PHP in wordpress












1














I'm getting confused on how to get the HTML code when the website is already made in page templates. In page templates there is all PHP written which is fetching HTML by itself no html is shown there. I need to get my hands on HTML of the page.










share|improve this question






















  • I wordpress they are using small small html snippet in different different php file. You not edit whole html in one place.
    – Srikrushna Pal
    Dec 28 '18 at 7:48










  • Ty for your response!. I need to change 1 picture only but HTML is not showing up in the template's php file. The PHP file getting header,footer and the content of html from where?
    – Kamran Mushtaq
    Dec 28 '18 at 7:58


















1














I'm getting confused on how to get the HTML code when the website is already made in page templates. In page templates there is all PHP written which is fetching HTML by itself no html is shown there. I need to get my hands on HTML of the page.










share|improve this question






















  • I wordpress they are using small small html snippet in different different php file. You not edit whole html in one place.
    – Srikrushna Pal
    Dec 28 '18 at 7:48










  • Ty for your response!. I need to change 1 picture only but HTML is not showing up in the template's php file. The PHP file getting header,footer and the content of html from where?
    – Kamran Mushtaq
    Dec 28 '18 at 7:58
















1












1








1







I'm getting confused on how to get the HTML code when the website is already made in page templates. In page templates there is all PHP written which is fetching HTML by itself no html is shown there. I need to get my hands on HTML of the page.










share|improve this question













I'm getting confused on how to get the HTML code when the website is already made in page templates. In page templates there is all PHP written which is fetching HTML by itself no html is shown there. I need to get my hands on HTML of the page.







html css wordpress






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 28 '18 at 7:39









Kamran MushtaqKamran Mushtaq

61




61












  • I wordpress they are using small small html snippet in different different php file. You not edit whole html in one place.
    – Srikrushna Pal
    Dec 28 '18 at 7:48










  • Ty for your response!. I need to change 1 picture only but HTML is not showing up in the template's php file. The PHP file getting header,footer and the content of html from where?
    – Kamran Mushtaq
    Dec 28 '18 at 7:58




















  • I wordpress they are using small small html snippet in different different php file. You not edit whole html in one place.
    – Srikrushna Pal
    Dec 28 '18 at 7:48










  • Ty for your response!. I need to change 1 picture only but HTML is not showing up in the template's php file. The PHP file getting header,footer and the content of html from where?
    – Kamran Mushtaq
    Dec 28 '18 at 7:58


















I wordpress they are using small small html snippet in different different php file. You not edit whole html in one place.
– Srikrushna Pal
Dec 28 '18 at 7:48




I wordpress they are using small small html snippet in different different php file. You not edit whole html in one place.
– Srikrushna Pal
Dec 28 '18 at 7:48












Ty for your response!. I need to change 1 picture only but HTML is not showing up in the template's php file. The PHP file getting header,footer and the content of html from where?
– Kamran Mushtaq
Dec 28 '18 at 7:58






Ty for your response!. I need to change 1 picture only but HTML is not showing up in the template's php file. The PHP file getting header,footer and the content of html from where?
– Kamran Mushtaq
Dec 28 '18 at 7:58














4 Answers
4






active

oldest

votes


















0














You can not edit a single HTML page.



By cons you can customize your themes, modifying PHP files (containing your HTML) that can expand only with a single HTML page.



To edit theme files:



Appearance -> Editor






share|improve this answer





















  • I want to edit the template which is used in the page not the whole page. I know where my template is but it is in php, the designing the pictures are not there in that php file nor any other file is fetching there. The thing is i need to customise that template. BTW thanks for your comment.
    – Kamran Mushtaq
    Dec 28 '18 at 10:32










  • Find the name of the image tag you want to edit. Then access to your site in FTP and search among all the files, it should help you.
    – Ugo Lfe
    Dec 28 '18 at 12:32



















0














You cannot find only HTML code inside Wordpress theme. Wordpress is based on PHP and all are written by PHP.



If you have to customize the template, you can learn How to create a custom template page?



And also this is the template documentation Wordpress Pages template Doc






share|improve this answer





























    0














    Following be the scenarios of handle HTML code
    First, you check there is any shortcode apply to fetch in your template page. Second, you check the WordPress function calling in your template page like the_content if so than commit the code and check response. Third, you can commit the header and footer function in your template file and check the response. Fourth if there is any file include in your template file through which your HTML fetch in the template file.



    Normally HTML file set up in the header and fetching it with help of ID in WordPress template file. you can cross check by disable your style.css and get a response if the only CSS disappeared so its good but if you also lost your HTML code so your stylesheet also handles your HTML code.



    Another option is to check the content area of your page and post because HTML code can accommodate from there.






    share|improve this answer





























      0














      Your all js, html and also php are in .php files. There's no way you want only to see/edit html only.



      If you want to edit specific html, first check your element class/id with Inspector by pressing F12 or CTRL+Shift+I and then go looking the element class/id on the php files by Appearance > Editor.



      For example, you want edit your picture element class/id on the homepage, it should be in index.php (note that: some developer theme have different way), if on the content page then the element is around single.php and content.php files






      share|improve this answer





















        Your Answer






        StackExchange.ifUsing("editor", function () {
        StackExchange.using("externalEditor", function () {
        StackExchange.using("snippets", function () {
        StackExchange.snippets.init();
        });
        });
        }, "code-snippets");

        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "1"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53955187%2fi-need-to-access-edit-the-html-code-of-page-templates-which-are-written-in-php-i%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        4 Answers
        4






        active

        oldest

        votes








        4 Answers
        4






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        0














        You can not edit a single HTML page.



        By cons you can customize your themes, modifying PHP files (containing your HTML) that can expand only with a single HTML page.



        To edit theme files:



        Appearance -> Editor






        share|improve this answer





















        • I want to edit the template which is used in the page not the whole page. I know where my template is but it is in php, the designing the pictures are not there in that php file nor any other file is fetching there. The thing is i need to customise that template. BTW thanks for your comment.
          – Kamran Mushtaq
          Dec 28 '18 at 10:32










        • Find the name of the image tag you want to edit. Then access to your site in FTP and search among all the files, it should help you.
          – Ugo Lfe
          Dec 28 '18 at 12:32
















        0














        You can not edit a single HTML page.



        By cons you can customize your themes, modifying PHP files (containing your HTML) that can expand only with a single HTML page.



        To edit theme files:



        Appearance -> Editor






        share|improve this answer





















        • I want to edit the template which is used in the page not the whole page. I know where my template is but it is in php, the designing the pictures are not there in that php file nor any other file is fetching there. The thing is i need to customise that template. BTW thanks for your comment.
          – Kamran Mushtaq
          Dec 28 '18 at 10:32










        • Find the name of the image tag you want to edit. Then access to your site in FTP and search among all the files, it should help you.
          – Ugo Lfe
          Dec 28 '18 at 12:32














        0












        0








        0






        You can not edit a single HTML page.



        By cons you can customize your themes, modifying PHP files (containing your HTML) that can expand only with a single HTML page.



        To edit theme files:



        Appearance -> Editor






        share|improve this answer












        You can not edit a single HTML page.



        By cons you can customize your themes, modifying PHP files (containing your HTML) that can expand only with a single HTML page.



        To edit theme files:



        Appearance -> Editor







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 28 '18 at 8:02









        Ugo LfeUgo Lfe

        416




        416












        • I want to edit the template which is used in the page not the whole page. I know where my template is but it is in php, the designing the pictures are not there in that php file nor any other file is fetching there. The thing is i need to customise that template. BTW thanks for your comment.
          – Kamran Mushtaq
          Dec 28 '18 at 10:32










        • Find the name of the image tag you want to edit. Then access to your site in FTP and search among all the files, it should help you.
          – Ugo Lfe
          Dec 28 '18 at 12:32


















        • I want to edit the template which is used in the page not the whole page. I know where my template is but it is in php, the designing the pictures are not there in that php file nor any other file is fetching there. The thing is i need to customise that template. BTW thanks for your comment.
          – Kamran Mushtaq
          Dec 28 '18 at 10:32










        • Find the name of the image tag you want to edit. Then access to your site in FTP and search among all the files, it should help you.
          – Ugo Lfe
          Dec 28 '18 at 12:32
















        I want to edit the template which is used in the page not the whole page. I know where my template is but it is in php, the designing the pictures are not there in that php file nor any other file is fetching there. The thing is i need to customise that template. BTW thanks for your comment.
        – Kamran Mushtaq
        Dec 28 '18 at 10:32




        I want to edit the template which is used in the page not the whole page. I know where my template is but it is in php, the designing the pictures are not there in that php file nor any other file is fetching there. The thing is i need to customise that template. BTW thanks for your comment.
        – Kamran Mushtaq
        Dec 28 '18 at 10:32












        Find the name of the image tag you want to edit. Then access to your site in FTP and search among all the files, it should help you.
        – Ugo Lfe
        Dec 28 '18 at 12:32




        Find the name of the image tag you want to edit. Then access to your site in FTP and search among all the files, it should help you.
        – Ugo Lfe
        Dec 28 '18 at 12:32













        0














        You cannot find only HTML code inside Wordpress theme. Wordpress is based on PHP and all are written by PHP.



        If you have to customize the template, you can learn How to create a custom template page?



        And also this is the template documentation Wordpress Pages template Doc






        share|improve this answer


























          0














          You cannot find only HTML code inside Wordpress theme. Wordpress is based on PHP and all are written by PHP.



          If you have to customize the template, you can learn How to create a custom template page?



          And also this is the template documentation Wordpress Pages template Doc






          share|improve this answer
























            0












            0








            0






            You cannot find only HTML code inside Wordpress theme. Wordpress is based on PHP and all are written by PHP.



            If you have to customize the template, you can learn How to create a custom template page?



            And also this is the template documentation Wordpress Pages template Doc






            share|improve this answer












            You cannot find only HTML code inside Wordpress theme. Wordpress is based on PHP and all are written by PHP.



            If you have to customize the template, you can learn How to create a custom template page?



            And also this is the template documentation Wordpress Pages template Doc







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 28 '18 at 8:26









            Su YatanarSu Yatanar

            12110




            12110























                0














                Following be the scenarios of handle HTML code
                First, you check there is any shortcode apply to fetch in your template page. Second, you check the WordPress function calling in your template page like the_content if so than commit the code and check response. Third, you can commit the header and footer function in your template file and check the response. Fourth if there is any file include in your template file through which your HTML fetch in the template file.



                Normally HTML file set up in the header and fetching it with help of ID in WordPress template file. you can cross check by disable your style.css and get a response if the only CSS disappeared so its good but if you also lost your HTML code so your stylesheet also handles your HTML code.



                Another option is to check the content area of your page and post because HTML code can accommodate from there.






                share|improve this answer


























                  0














                  Following be the scenarios of handle HTML code
                  First, you check there is any shortcode apply to fetch in your template page. Second, you check the WordPress function calling in your template page like the_content if so than commit the code and check response. Third, you can commit the header and footer function in your template file and check the response. Fourth if there is any file include in your template file through which your HTML fetch in the template file.



                  Normally HTML file set up in the header and fetching it with help of ID in WordPress template file. you can cross check by disable your style.css and get a response if the only CSS disappeared so its good but if you also lost your HTML code so your stylesheet also handles your HTML code.



                  Another option is to check the content area of your page and post because HTML code can accommodate from there.






                  share|improve this answer
























                    0












                    0








                    0






                    Following be the scenarios of handle HTML code
                    First, you check there is any shortcode apply to fetch in your template page. Second, you check the WordPress function calling in your template page like the_content if so than commit the code and check response. Third, you can commit the header and footer function in your template file and check the response. Fourth if there is any file include in your template file through which your HTML fetch in the template file.



                    Normally HTML file set up in the header and fetching it with help of ID in WordPress template file. you can cross check by disable your style.css and get a response if the only CSS disappeared so its good but if you also lost your HTML code so your stylesheet also handles your HTML code.



                    Another option is to check the content area of your page and post because HTML code can accommodate from there.






                    share|improve this answer












                    Following be the scenarios of handle HTML code
                    First, you check there is any shortcode apply to fetch in your template page. Second, you check the WordPress function calling in your template page like the_content if so than commit the code and check response. Third, you can commit the header and footer function in your template file and check the response. Fourth if there is any file include in your template file through which your HTML fetch in the template file.



                    Normally HTML file set up in the header and fetching it with help of ID in WordPress template file. you can cross check by disable your style.css and get a response if the only CSS disappeared so its good but if you also lost your HTML code so your stylesheet also handles your HTML code.



                    Another option is to check the content area of your page and post because HTML code can accommodate from there.







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Dec 28 '18 at 8:39









                    Owais AlamOwais Alam

                    943613




                    943613























                        0














                        Your all js, html and also php are in .php files. There's no way you want only to see/edit html only.



                        If you want to edit specific html, first check your element class/id with Inspector by pressing F12 or CTRL+Shift+I and then go looking the element class/id on the php files by Appearance > Editor.



                        For example, you want edit your picture element class/id on the homepage, it should be in index.php (note that: some developer theme have different way), if on the content page then the element is around single.php and content.php files






                        share|improve this answer


























                          0














                          Your all js, html and also php are in .php files. There's no way you want only to see/edit html only.



                          If you want to edit specific html, first check your element class/id with Inspector by pressing F12 or CTRL+Shift+I and then go looking the element class/id on the php files by Appearance > Editor.



                          For example, you want edit your picture element class/id on the homepage, it should be in index.php (note that: some developer theme have different way), if on the content page then the element is around single.php and content.php files






                          share|improve this answer
























                            0












                            0








                            0






                            Your all js, html and also php are in .php files. There's no way you want only to see/edit html only.



                            If you want to edit specific html, first check your element class/id with Inspector by pressing F12 or CTRL+Shift+I and then go looking the element class/id on the php files by Appearance > Editor.



                            For example, you want edit your picture element class/id on the homepage, it should be in index.php (note that: some developer theme have different way), if on the content page then the element is around single.php and content.php files






                            share|improve this answer












                            Your all js, html and also php are in .php files. There's no way you want only to see/edit html only.



                            If you want to edit specific html, first check your element class/id with Inspector by pressing F12 or CTRL+Shift+I and then go looking the element class/id on the php files by Appearance > Editor.



                            For example, you want edit your picture element class/id on the homepage, it should be in index.php (note that: some developer theme have different way), if on the content page then the element is around single.php and content.php files







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Dec 28 '18 at 8:46









                            niznetniznet

                            399




                            399






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Stack Overflow!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.





                                Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                                Please pay close attention to the following guidance:


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53955187%2fi-need-to-access-edit-the-html-code-of-page-templates-which-are-written-in-php-i%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                Monofisismo

                                Angular Downloading a file using contenturl with Basic Authentication

                                Olmecas