Support » Fixing WordPress » Cannot locate css/php file as highlighted by inspect element

  • alaninthecity

    (@alaninthecity)


    I’m building a site (that I’ll move later) and on the front page there are 5 sections (Payroll Services, Human Resources etc).

    There was a ‘Read More’ button beneath each section that I accidently deleted and now want to put back. If I right click and inspect element, I can see where I need to add the text back in, but I cannot find the relevant css/php file to edit.

    Please help. Happy to give wp-admin access.

    Thank you in advance

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • wvfitzgerald

    (@wvfitzgerald)

    hello @alaninthecity

    From the front end it looks like it’s just content, where did you delete them from?

    alaninthecity

    (@alaninthecity)

    Thanks for the quick reply wvfitzgerald.

    It is content and it seems to relate to a css file called .read that I can’t find (if that is in fact what I’m supposed to be looking for.

    WHen I inspect element at the bottom of any of those sections (and here’s the bit I missed out in the original post – oops) and view in HTML, I can see the <span class=<“read”></span)

    and it’s in between the > and the </span> that I need the words ‘Read mrre’

    It works in the inspect element inspector in HTML view, but f course that’s not permanent, and I can’t find the file I’m supposed to be editing.

    Thank you again 🙂
    Alan

    wvfitzgerald

    (@wvfitzgerald)

    @alaninthecity

    If you deleted the text in the content you don’t need to find any other files. All you should really need to do is go back to where you originally deleted the text and re-add it. the .read bit is the css class name but likely isn’t what you need to fix this.

    A couple of Options:

    You could first try scrolling down to the bottom of the editor page and look for the “Revisions”, assuming they are enable by your theme and you have not made a lot of changes you don’t want to lose you can then just revert to the version where you deleted the text.If you don’t see the revisions at first go to the top of the page and look under Page Options to be sure it is there and the checkbox is checked.

    Another option is to go to the content editor and assuming it is a visual editor click on the “Text” tab so that you can see the html, now you should be able to find <span class=”read”></span> and add the proper text back in. That span won’t show in the Visual tab because there’s no text.

    Let me know how it goes

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    @alaninthecity, Unfortunately you’re not allowed to give admin access and others aren’t allowed to solicit that from you, nor are they allowed to solicit private information. The limitation of asking for help on these forums is that support remains here.

    alaninthecity

    (@alaninthecity)

    @wvfitzgerald
    Thank you again. The issue seems to be (besides me not know too much about wp) is that there is some function that is pulling text from the page and displaying it in the front page sections. I can see the pages themselves from pages in backend wp that are nothing like the front end.

    The theme is IT Consultant Pro by SKT Themes but I have repurposed it.

    alaninthecity

    (@alaninthecity)

    @wvfitzgerald
    Made this change:
    <p class=”has-medium-font-size”>Comp U.S. Payroll provides accurate and timely payments, tax withholdings, and paycheck deductions. These play a crucial part in any organization. From net income to employee morale, payroll affects many

    <span class=”read”>Read more</span>

    aspects of business. A secure and easy-to-use system, along with a trusted partner, can alleviate the burden of payroll. Manage payroll with confidence utilizing proprietary products, Millennium and Payentry.</p>

    But nothing changed.

    alaninthecity

    (@alaninthecity)

    where the <span class=”read”>Read more</span> statement is where the Read More needs to go on the front page.

    Sorry to ask such (presumably) simple questions

    wvfitzgerald

    (@wvfitzgerald)

    @alaninthecity
    Yes, you have it exactly right above so we just need to know why it is not showing on the home page.

    First, are you using a caching plugin on the site or perhaps Cloudflare? If so clear that cache and see if your changes show.

    Go to Settings->Reading and be sure the page you are editing is set ash the Front Page, if not take note of which page is and try editing it (unlikely but possible).

    if that didn’t apply/help I am going to backtrack just a little here to be sure I understand the issue correctly:

    you said you deleted the text and now want it back, correct?
    If I am understanding that correctly where exactly did you delete it?

    Also:

    I found the documentation for the theme and it contains a link to the page builder that the theme uses, this could be helpfull:
    http://sktthemesdemo.net/documentation/consulting-pro-documentation/

    alaninthecity

    (@alaninthecity)

    @wvfitzgerald

    Sorry for delay in replying – thank you for your response. Aparently my Front Page is recent posts and not a static page. I think that’s how the theme came.

    I was using a visual editor (yellow pencil I think) and just highlighted the text and deleted it. Of ocurse there’s no way to add it back in again now using the same plugin.

    Very confusing.

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Cannot locate css/php file as highlighted by inspect element’ is closed to new replies.