• If you scroll down to the bottom of the page just above the footer area, there are three text blocks with excerpts and featured images. You will see the “page title” is appearing under the image and runs into the first word of the first sentence. How do I fix this? I also don’t know what these three text box areas are called.

    Maybe related to this is I wrote a dummy blog post, it says it’s a featured post. The featured post did not show up on the front page. Is this something that is set in the customizer perhaps?

    I’m recovering from a brain injury so sometimes I forget major details — I have the aptitude but short term memory causes complete lapses of memory. I may have set this up or it could have been part of what I inherited when I started working on this site and migrating it from wordpress.com to hosted site.

    Thank you for your help.

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

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

    (@sacredpath)

    Automattic Happiness Engineer

    Hi there, I’m not seeing this issue on your site right now. I see that you have used the following custom CSS to remove the titles on the featured pages right above the testimonials.

    Are you still having issues with this, or have you gotten it resolved?

    I like the header image. Reminds me of some of the places I used to go where I was born and raised.

    Thread Starter Jenatay

    (@jenatay)

    I’m still having the problem. If you scroll down to the bottom three pictures in a row that is the area creating the problem.

    There’s a picture of hands and underneath the picture of hands is this copy “Grant fund accounting expertise Through years of..” in the first line under the picture. Grant Fund Accounting Expertise is the page title — you see how it is not treated as a title on this page and the first line of the sentence begins with “Through…”

    The same is true for the next two pictures shown.

    I don’t know coding but have taken some codes from groups to override constraints with themes. I did not pick this theme as it was inherited with the client.

    Re removing he custom titles on featured pages, I vaguely remember doing that — I have a brain injury and sometimes my memory doesn’t serve things up. I am sure I did that for a reason and probably spent hours combing for help. Can you tell if i need it and if it’s doing its purpose? Is this related to the problem I’m having?

    The header image is a great shot — Francine has many great landscape mountain photos. She’s an avid hiker and trail runner. I prefer hiking speed myself and saving the running for chasing the yellow-green tennis ball around the court!

    Thank you for your help. Jena

    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Hi, I see I somehow forgot to paste in the CSS. The following in your custom CSS is hiding the titles on the featured pages on your main page.

    body.page-template-default .entry-title {
    	display:none;
    }

    If you remove the above from Appearance > Customize > Additional CSS, the titles will come back and they will be above the images. I checked with the above removed, on various window widths, down to and including phone size, and the titles appear above the images.

    Those three text box areas are Featured Page areas. You can choose which pages show in those three areas by going to Appearance > Customize > Theme Options. To edit those pages or the content, go to the Admin area, and go to Pages > All Pages and you will find all the static pages that have been created.

    If after removing the above code from the custom CSS, if the titles are interfering with the content, let me know, and also let me know in which browser and version you are seeing this issue and I’ll try and replicate. On Safari, Chrome and Firefox on my Mac, I’m not seeing any interference.

    Thread Starter Jenatay

    (@jenatay)

    I removed the code as you suggested and that did nothing to remedy the problem. I viewed it in Firefox, Edge, and Chrome. All show the same, original problem.

    Originally, I had placed this code in because I did not want page titles to appear on the individual pages:

    .site-info {
    display : none;
    }
    body.page-template-default .entry-title { display:none;}

    To make sure we are addressing the same issue in question, I’m referring to the three boxes at the bottom of the home page right above the testimonials. Under the hands image, the Header (H2) “Grant fund accounting expertise” is serving up as body copy and running into the first sentence of the actual body copy: “Through years of…” (I mistakenly called this the “page title” when actually it is an H2 header. Maybe this makes more sense to you now. ??

    I appreciate your help with this. Thank you.

    sacredpath

    (@sacredpath)

    Automattic Happiness Engineer

    Ah, now I understand. The WordPress software, when it creates the excerpts, filters out the formatting and makes the excerpt into a standard paragraph. The h2 tags are being stripped out. You can read more about the the_excerpt() function here.

    You can override the excerpt filter function by creating your own in a Child Theme and doing the necessary coding. See this function reference for more on that.

    Thread Starter Jenatay

    (@jenatay)

    Thank you. Wow…i’m not a coder but I just created the style.css and functions.php files in new dara-child theme directory using FileZilla. Now, I’m at the step where I can add the filter (in the link you provided):

    function filter_function_name( $excerpt ) {
    # …
    }
    add_filter( ‘get_the_excerpt’, ‘filter_function_name’ );

    The instructions say:
    Where ‘filter_function_name’ is the function WordPress should call when the excerpt is being retrieved. Note that the filter function must return the excerpt after it is finished processing, or page sections showing an excerpt will be blank, and other plugins also filtering the excerpt may generate errors.

    filter_function_name should be unique function name. It cannot match any other function name already declared.

    My question is:
    Since I don’t know much at all about this, what “function name” do I use? It sounds like I need to rename the function name in the code. I’m way above my skill level so this is all brand new to me (and I have a brain injury I’m recovering from it seems even trickier today).

    Thank you for your help.

    Thread Starter Jenatay

    (@jenatay)

    I still haven’t been able to figure this out. What would you charge to do this for me?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘page title showing under featured image on front page; runs into the 1st sentenc’ is closed to new replies.