• Hello,

    Hope someone can help or advice…

    I want all my pages to display the featured image in the header; in the same way that happens with posts (when you have customiser > blog > single post > featured image in header, checked).

    What changed would I need to make to my child theme, in order to make this happen?

    Kind regards,

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Similarly, as you display it in the parent theme – ‘customiser > blog > single post > featured image in header, checked).’

    Good morning

    I have the same problem: static pages dont show their featured image

    My frontpage is set up to show latest posts.
    In Ocean, Page Title is set to a background img (let’s call it the “hero”)

    I would like to get the following behaviour:

    Front Page: I want Hero + grid. It works
    Single Post: I want Just Featured img (no hero). It works (image cropped + overlay)
    Single Page: I want Just Featured img (no hero). But it shows the hero, instead of featured image

    Tested in chrome and Firefox

    Maybe the Page Title is not intended to act as a “hero”, but I can’t see any other alternative to declare a “big header image”

    When editing a page (with a featured image), preview or view page don’t show the img either, so I suspect it is not a Ocean issue, but a WP database mess or similar

    thanks

    Hello,

    To display page header on a page, click on Edit Page > OceanWP settings Metabox > Title Tab and select background image -> upload an image.

    Also, go to Customize > General Options > Page Title and select Background Image – > upload an image

    Thanks
    Is there any way to show the header image only in the very frontpage and hide in all other cases? For single posts I use the featured image, and for single pages the Elementor background image.

    Hello,

    Can you share your site link so that I can check it? Hide the page header from the Customize > General Options > Page Title and select Hidden from the Style drop-down.

    Now Edit Front Page > OceanWP settings Metabox > Title Tab and select Enable. Select Background Image from the style drop-down and upload an image.

    Thanks, the real blog is blog.datium.eu

    There I have several issues

    WP issues (not Ocean WP)
    1.- The blog doesn’t work with permalinks (other than plain). This is a WP issue, covered around in the web, but I can’t find my way to fix it.

    CORS issue
    2.- Font-Awesome only appear if I add a certain extension to Chrome (Allow-Control-Allow-Origin), but they don’tappear in EDGE or Firefox and, presumably, many visitors will no see the nice icons in single post meta.

    Ocean WP customisation
    3.- Front page (latest posts) doesn’t show the header-page image background. Instead it shows the site tagline, in a big font.

    4.- Single posts show the header-page image background, and post-title is centered on top of that image. Since the post-title appears as well in the post body, it turns out to be shown twice

    5.- On the other hand, single page doesn’t show the header-page image background, which is fine for me (because it shows their featured image), but doesn’t show the title of the page (preceding the content text, as it seems natural to be).

    6.- I can’t manage to show the site title (or tagline) in the header ( I am using minimal, is the one I like most). Therefore, I created a logo including the tagline

    7.- Is front page (latest posts) accessible from All Pages (wp-admin) or any other means?

    Thanks

    Hello,

    1. Try to switch to Parent OceanWP theme and check it works or not. Did you add the code to the child theme related to register_taxnomoy? If yes, then check the code again and try to rename the slug. Also, delete or rename the .htaccess file. Now save the settings in the Dashboard > Settings > Permalinks to regenerate the .htaccess file. Disable/enable plugins one by one to check for a possible conflict.

    2. Add the below code to the .htaccess file to fix it.

    <IfModule mod_headers.c>
      <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
        Header set Access-Control-Allow-Origin "*"
      </FilesMatch>
    </IfModule>

    Use this for the subdomain

    <ifmodule mod_headers.c="">
       SetEnvIf Origin "^(.*\.datium\.eu)$" ORIGIN_SUB_DOMAIN=$1
       Header set Access-Control-Allow-Origin "%{ORIGIN_SUB_DOMAIN}e" env=ORIGIN_SUB_DOMAIN
       Header set Access-Control-Allow-Methods: "*"
       Header set Access-Control-Allow-Headers: "Origin, X-Requested-With, Content-Type, Accept, Authorization"
    </ifmodule>

    3. Go to Customize > General Option > Page Title and select Background Image from the Style drop-down.

    4. Go to Customize > Blog > Single Post and find Elements Positioning. Click on the Eye icon to disable the title. Similarly for the featured image if you want to hide it.

    5. Go to Customize > Blog > Single Post and click on display featured image.

    6. In the minimal header style, remove the logo and save the settings. Now reload the site and check it works or not. It will display site title.

    7. I didn’t clearly understand it. Can you please elaborate more?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Display featured image for pages (just like with posts).’ is closed to new replies.