I need to access/edit the HTML code of page Templates which are written in PHP in wordpress
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
add a comment |
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
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
add a comment |
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
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
html css wordpress
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
add a comment |
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
add a comment |
4 Answers
4
active
oldest
votes
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
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
add a comment |
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
add a comment |
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.
add a comment |
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
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
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
add a comment |
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
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
add a comment |
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
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
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
add a comment |
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
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Dec 28 '18 at 8:26
Su YatanarSu Yatanar
12110
12110
add a comment |
add a comment |
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.
add a comment |
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.
add a comment |
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.
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.
answered Dec 28 '18 at 8:39
Owais AlamOwais Alam
943613
943613
add a comment |
add a comment |
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
add a comment |
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
add a comment |
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
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
answered Dec 28 '18 at 8:46
niznetniznet
399
399
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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