• I recently installed the Dyad theme on my new installation of wordpress on godaddy hosted wordpress.

    I love this theme as I am using it on my .wordpress blog.

    https://tobyandtamar.wordpress.com

    The thing is I get an error in the header on the godaddy installation.
    I don’t see the header and I can see this in the header instead.

    Fatal error: Can’t use function return value in write context in /home/content/p3pnexwpnas06_data01/09/2973009/html/wp-content/themes/dyad-wpcom/template-parts/content-customheader.php on line 23

    Does anyone know what could be causing this issue?

    help would be much appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator t-p

    (@t-p)

    – Unfortunately, your currently used theme is not in the www.ads-software.com/themes/ directory:
    https://www.ads-software.com/themes/search/Dyad/

    – These forums are for free themes available in the WordPress theme directory at www.ads-software.com/themes/. So please contact the developer/vendor directly for support with your question. You’ll be more likely to find a good answer from them, for they have the access to its code. Forum volunteers are not given access to commercial products, so they would not know why your /custom/commercial theme or plugin is not working properly. The developers/vendors are responsible for supporting their custom/commercial product. See https://codex.www.ads-software.com/Forum_Welcome#Commercial_Products

    meanwhile, if you need immediate access to admin, try switching to the unedited default Twenty Fifteen theme, use FTP , or your web-host’s cPanel or whatever file management application your host provides. Navigate to /wp-content/themes/ and switch to the default theme by renaming your current theme’s folder by adding “-old” to the end of the folder name. Alternately, you can remove other themes except the default theme. That will force your site to use it.

    It actually ìs in the www.ads-software.com theme-directory:
    https://themes.trac.www.ads-software.com/browser/dyad?rev=53784
    but I think it has not yet been accepted by www.ads-software.com.

    I was facing the same problems but fixed it in the end. As I do not need the content-slider on the homepage I didn’t install Jetpack (did you read the readme in the zipfile?) and I expected Dyad to fall back on the fixed header image, as it says in the documentation on wordpress.com. The fallback doesn’t seem to work resulting in a broken homepage and singepost view. I suppose there’s a reference/dependence to the featured-content functionality of the Jetpack-plugin somewhere outside an if-statement causing a call to an undefined function and thereby killing the page.

    So, in short: install the Jetpack plugin. Then go to Theme customizations and you’ll notice the there’s a new tab: ‘Featured content’. Open the tab and enter a tag, for example ‘featured’. Make sure at least of your posts is also tagged ‘featured’ and set a featured image in the post and bob’s your uncle.

    Nevertheless, there’s still a bit of work to do on the code, there are a few inconsistencies and the comments are sometimes a copy-paste from another file (page and single for example) and the static-frontpage header doesn’t work. If you insist on using a static header instead of a featured post, as a quick-and-dirty solution I would create an empty post and make that the only post that has the tag featured, set your favorite header-image as a featured image for that post and you’d be almost there. Perhaps you want to remove the ugly ‘featured’, which is in my opinion rather useless anyway because by putting a certain post in the header its already obvious that it’s a featured post…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Problem with header.’ is closed to new replies.