WordPress.org

Ready to get started?Download WordPress

Forums

Removing a div from the theme (4 posts)

  1. jennyfogarty
    Member
    Posted 1 year ago #

    Hi Everyone,

    Hopefully someone can help me with this before I pull my own hair out.

    I have the Centita theme installed on a site I am working on for a client. There is a portfolio section to this theme where on the end of each individual portfolio page a "Get A Free Quote" link appears.

    I have contacted the author of the theme who instructed me to remove the following code from the portfolio-template.php

    [please mark any posted code - see http://codex.wordpress.org/Forum_Welcome#Posting_Code ]

    <div class="h-line"><hr /></div>
                        <div class="quote">
    
                        <?php
                          $getquote_title = get_option('centita_getquote_title');
                          $getquote_icon = get_option('centita_getquote_icon');
                          $getquote_text = get_option('centita_getquote_text');
                          $contacentita_email = get_option('centita_info_email');
                        ?>
                        <img src="<?php echo $getquote_icon ? $getquote_icon : get_template_directory_uri().'/images/quote-paper.jpg';?>" alt="" class="imgleft" />
                        <h2><?php echo $getquote_title ? $getquote_title :"Get a free Quote";?></h2>
                        <?php if ($getquote_text !="") echo "<p>$getquote_text</p>";?>
                        </div>

    I did this.

    Nothing happened. The Get A Quote line is till there.

    I have located the div.quote using Firebug but am very new to Firebug and do not know how to remove a div from there.

    Can anyone please help me with this as I am not getting much support from the Author of the theme at all.

    Its really frustrating!!

  2. jennyfogarty
    Member
    Posted 1 year ago #

    I can also see it when I open the HTML from Firebug but again, I cannot remove it from here either!!!

  3. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    YOu wouldn't remove the code from within Firebug. Firebug is simply for exploring code, and testing changes... it does not make any permanent changes

    Have you deleted that above code from the actual theme, on your active site?

    You would do that through the theme editor, or using FTP

  4. jennyfogarty
    Member
    Posted 1 year ago #

    Hi Rev. Voodoo!
    Thanks for getting back to me.

    Ok, so now I know why I couldnt edit in Firebug!

    I removed the text from the editor in Worpdress AND using Dreamweaver at my end, reuploading to the ftp server when it was edited.

    I can see in Firebug, it shows that the code is in "reset.css" but I cannot locate this or the html file to delete the div.quote tag.

    Really lost here!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags