• Hi I’m trying to edit the html codes of my site on wordpress, but all the files I have are in php format. When I opened it up with Dreamweaver attempting to change it, the codes turn out to be different from how I inspect elements from my site. (in php code I suppose.)

    Can someone please tell me how can I edit the html codes from the php files? I have no knowledge in php at all..

    Thanks in advanced.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Sorry, your question is too vague. Please give an example of some PHP code that you need to find HTML form.

    Thread Starter tee.shiu

    (@teeshiu)

    Sorry. Here’s the PHP code:

    <?php get_header(); 
    
    if(get_option('ocmx_home_page_layout') != '') $layout = get_option('ocmx_home_page_layout'); else  $layout = 'blog'; 
    
    // Load the home page template according to the user's selection under Theme Options > General > Home Layout
    get_template_part('/functions/'.$layout.'-home');
    
     get_footer(); ?>

    And the HTML code I would like to edit:

    <li class="no_display active" style="background-image: url(http://www.willinovaproductions.com.au/wp-content/uploads/2013/05/0523_jimnat_FINAL.jpg); display: list-item; background-position: 50% 50.34168564920273%;background-repeat: no-repeat no-repeat;">

    Thank you!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Which theme are you using?

    Thread Starter tee.shiu

    (@teeshiu)

    I’m using a theme called “Dynamo” bought from Obox Theme.

    Here’s the link of the demo

    Thread Starter tee.shiu

    (@teeshiu)

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    The PHP code you posted does not contain any <li> HTML, it does however call three files through the “get_header”, “get_template_part” and “get_footer” functions. You need to discuss what files are being brought in with the people who sold you your theme. We aren’t given access to commercial themes.

    Thread Starter tee.shiu

    (@teeshiu)

    Ok, I will try asking them then.

    Thank you very much!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Edit html code from php file’ is closed to new replies.