ian147
Forum Replies Created
-
For other readers…
I was unable to successfully redirect users after login (using the “After login redirect URL” field in the Profile Builder Login Widget.Following another suggestion here, I tried Peter’s Login Redirect Plugin without success (possibly because the login has been customised???).
What DID work, thankfully, was updating to Version 2.4.8 of Profile Builder. :-$
Forum: Themes and Templates
In reply to: [Customizr] Add Image Before ContentFor Karli, or anyone else viewing this thread hoping to address a similar problem:
Here is my rather Frankenstein code (with sources) that displays full-width copies of the featured image for pages beneath the header, above the crumb trail:
<?php // 2016-05 Include featured image (at Customizr standard 1150px by 500px) full width beneath header // 2016-05 adapted from http://presscustomizr.com/snippet/adding-block-content-header/ // with some of https://ww.wp.xz.cn/support/topic/featured-image-not-working-want-to-remove-help-from-admin-bar // we add the action with priority set to 5 => it will be displayed in first position (before the slider if any) add_action ('__after_header' , 'show_featured_image_after_header', 20); function show_featured_image_after_header(){ if (! ( is_page() && has_post_thumbnail() ) ) return; /* * set this to false to use the original image size * (note: it's resized according to its container width) * change this to true to use customizr thumbnail size * by default 270x250 px */ $use_tc_thumb = false; /* * chose a wordpress thumbnail size: * 'thumbnail', 'medium', 'large', 'full' */ $alternative = 'full'; $thumb_size = ($use_tc_thumb) ? 'tc-thumb': $alternative; ?> <div id="my-content-header"> <div class="row-fluid"> <div class="span12 text-center"> <?php the_post_thumbnail($thumb_size); ?> </div> </div> </div> <?php }It almost certainly includes much redundant code, but it seems to work. The site I’m developing where this is used is unavailable publicly, at present. So sorry for no link.
Best wishes
Ian
Forum: Themes and Templates
In reply to: [Customizr] Add Image Before ContentPS The one-slide slider can be full width or not.
Forum: Themes and Templates
In reply to: [Customizr] Add Image Before ContentIt may take me longer to find a ‘proper’ solution, if I ever do, than the fast-moving world of forums allow, but if I do then I’ll report back at some point. 🙂
In the meantime I found an easy, but very kludgy, work-around that doesn’t require any programming or css knowledge (part of the reason I was looking into Customizr theme). It seems to have problems if you resize window – but is that really so frequent?
If you make a Customizr slider with one image – the featured image – it i displays where we want. Resizing the window can break it, but it is, at least, easy!
Ian
Forum: Themes and Templates
In reply to: [Customizr] Add Image Before ContentKarli, I’m still looking into how to place the featured image above the title, etc programmatically. It’s harder than I anticipated because I cannot manage to google an answer (or even clue) and I was unfamiliar with WordPress hooks, actions and so forth that are fundamental to the Customizr theme, I have discovered.
I may not be successful, but will aim to report back here within a few days either way.
Thanks for your css approach, which I may well fall back on!
Ian
Forum: Themes and Templates
In reply to: [Customizr] Add Image Before ContentI have been trying to work out how to make a page display the featured image in exactly the same way that a single ‘standard’ post already displays it within the theme (1170 by 500 px image displayed full width above breadcrumb trail).
I feel that there must be an action or filter that enables this for a post (but I don’t know where to find it) that could be adapted and pasted somewhere (in child theme functions.php?) but I need help finding and adapting it!
I think that’s part of what KJGreen wants, so I thought that it would be OK to chip in to this addition. If I’m mistaken then I apologise and will retreat.
Best wishes
Ian
Forum: Themes and Templates
In reply to: [Quark] Deleting All Hyphenated WordsI wanted to disable hyphenation when I set up my site, too. The code that I added to my child theme’s style.css was:
p, h1, h2, h3, h4, h5, h6 { -moz-hyphens: none; -ms-word-break: keep-all; -webkit-hyphens: none; hyphens: none; word-wrap: normal; word-break: normal; }I’m not saying that it’s better, just that I notice a couple of extra definitions.
Forum: Plugins
In reply to: [Simple Page Sidebars] Sidebar for specific postI’m just visiting here, looking to see if this plug-in might help with my site, so I’m no expert! But I believe this plug-in works only with pages, not posts. So, as I understand it, the custom sidebars only appear on ‘page’ pages and not on ‘post’ pages.