Support » Fixing WordPress » How do I find a specific page and edit its html?

  • I’m looking to find a specific page and edit the html. Do I do this through WordPress or cpanel and if so how?

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 15 replies - 1 through 15 (of 21 total)
  • Hello adsler26,

    It is ideal to use WordPress and its features to manage the pages and their content.

    It is not good practice to edit the pages via cPanel.

    Let me know if you have any further query.

    Thanks.

    Thread Starter adsler26

    (@adsler26)

    Thanks. But I installed ‘what the file’ plugin and it didn’t come uo with tye html I’m looking to edit?

    Thread Starter adsler26

    (@adsler26)

    It didn’t come up with the html I’m looking to edit

    Thread Starter adsler26

    (@adsler26)

    @kartiks16 yes, how do I do it?

    Thread Starter adsler26

    (@adsler26)

    @jnashhawkins in view-source, I’ve specified the html which needs editing, when i go to ‘what the file’ section, it doesn’t come up with that html?

    Can you directly use the Wordpess page editor to add the content and display that on your website?

    Just go to pages, add your content and it will appear in front.

    Let me know if you are trying to achieve something different here.

    Thanks.

    Your content is stored in a database. The Theme is just a place holder for your content. WordPress generates the pages using the database and a page from your template. There is no physical page for the pages you create in WordPress. They are generated on the fly by WordPress. You need to do what kartiks16 said use WordPress tools to edit the data. If you want to change the template you will need to create a child theme and add your changes there. Do not change the files in the template or it will cause you problems later on.

    Well, I’m hoping the two tutorials I mentioned will help you…

    When I absolutely have to work on a theme issue, I usually edit the theme files in a child theme and use my editors in my FTP client. I really hate working on themes…

    Just not my cup of tea… themes are just not interesting to me.

    Thread Starter adsler26

    (@adsler26)

    @kartiks16 Hi, yes, I am trying to edit and locate a specific piece of html?

    Please elaborate more on which html code you wish to edit so we can guide you further.

    Thanks.

    Thread Starter adsler26

    (@adsler26)

    <br/><label>Phone:</label> 7576XXXXXX

    to be replaced with

    <br/><div class="foobar"><label>Phone:</label> 7576XXXXXX</div>

    On which page of your website you wish to make this change ?

    The HTML could have been produced by a number of different things. It could be a shortcode, Guttenberg block, Statement in one of your template files, or a plugin.

    Can you show the code you want to modify and where it is on the page? A single page can have a lot of different parts. It usually contains header.php, footer.php, Sidebar.php, contains different template parts, and parts that are generated from functions.php.

    If it a plugin then it probably being generated on the fly by WordPress and doesn’t have a physical file.

    Thread Starter adsler26

    (@adsler26)

    https://adsler.co.uk/wp-user-test-dashboard-2/awpcp-show-ad/13/madame-bovary/london/uk/books/&#8221; is the page

    But that’s just an example page. It’s a classifieds site, so I’m looking to add a div class in order to be able to select the label ‘phone’ amd modify it.

    At the moment, the label ‘phone’ has no div class, so impossible to modify individually with css.

    Thanks.

Viewing 15 replies - 1 through 15 (of 21 total)
  • The topic ‘How do I find a specific page and edit its html?’ is closed to new replies.