fonziconnzi
Forum Replies Created
-
Forum: Plugins
In reply to: [MC4WP: Mailchimp Top Bar] Hide top bar when logged in as adminHi, thanks for supplying the above solution, however this function no longer seems to work since upgrading to the latest version of the plugin.
Furthermore, if the plugin is enabled, it disables my admin bar.
Please could you let me know if there is a way I can fix this?
Many thanks.
Forum: Themes and Templates
In reply to: [Make] Facebook Icon no longer displaying in Social MenuHi Corey,
Thanks for taking the time to reply. I hadn’t been able to identify what was causing the conflict. Have ditched the plugin now.
Am using a child theme and some custom PHP already – so was putting the modifications in here to prevent them being overwritten by future updates. Since I’ve now got rid of the problematic plugin, it shouldn’t continue to be an issue either way.
Thanks again!
Forum: Themes and Templates
In reply to: [Make] Facebook Icon no longer displaying in Social Menup.s. I just managed to locate the inc/extras.php file where I was able to change the icon class to “fa-fw-facebook” – so the icon is now displaying, but it is now a different hover colour to the others!
Is there a better workaround/fix to this entire problem as this feels like a very clumsy solution?
sorry, my mistake. please ignore/delete.
Yes, I haven’t been able to resolve this at all either, that suggested widget shortcode method doesn’t seem to work as intended, which is a shame, as it does significantly compromise functionality.
Fantastic plugin otherwise.
Forum: Themes and Templates
In reply to: [Sketch] Making all Portfolio Images SquareHi Kathryn,
I really appreciate the encouraging feedback and thanks a lot for pointing out those HTML errors (which I have now fixed).
I haven’t managed to accomplish the uniform square cropping yet.
My workaround was to create a separate square cropped featured image in the media library, and to use that, wherever the images were not displaying as square previously.
This is not ideal however, as the PrettyPhoto lightbox then only shows the square image, rather than the actual original painting dimensions when activated, because it is no longer linking to the original image.But what I really want to accomplish is for the code to automatically crop each featured image to a uniform square size, without any distortion.
I tried adding this code to style.css in my child theme
.project-navigation-wrapper .entry-thumbnail img, .page-template-portfolio-page-php .entry-thumbnail img, body[class*="jetpack-portfolio"].archive .entry-thumbnail img { min-height:100%; }
which forces all the images to display as square, but causes distortion (vertical stretching).
I don’t know how I can get around this – do you have any pointers you could give me?
The problem is only occurring on images where the originals are landscape proportions, not on portrait formats.
I’ve reverted the code so that you can see the problem visually:
https://www.foragables.co.uk/portfolio/project-type/still-life/
Many thanks,
FionaHi,
Thanks for this suggestion.
I have added the #_CATEGORYLINK formatting within the Events widget, but this outputs a category link for every event, rather than just showing each category once.
You can see what I mean here:
https://www.cooltanarts.org.uk/cooltanprototype/events/Is there any way I can limit this behaviour from within the widget settings, or modifying the widget php code so that each category only displays once?
Many thanks
Hi,
The site I am building where it is happening is here:
https://www.cooltanarts.org.uk/cooltanprototype/events/
Many thanks.
$args = array( 'post_type' => 'event', 'tax_query' => array( array( 'taxonomy' => 'featured-events', ), ), ); $query->set( 'post_type', array( 'post', $args) ); return $query;
I know this is wrong but is this anywhere near close to what is needed?
Thanks for your reply.
but I still don’t know how I can combine the above with the tax_query.
$args = array( 'post_type' => 'post', 'tax_query' => array( array( 'taxonomy' => 'people', 'field' => 'slug', 'terms' => 'bob', ), ), ); $query = new WP_Query( $args );
I think I need to query both the standard post type, and the ‘event’ post type within my function.
Then I believe I need to filter the ‘event’ post_type by the custom taxonomy ‘featured-events’.
But I still have no idea how that would correspond to the tax_query array example above, or how I could adapt that to include both the post_type ‘post’ as well as ‘event’.Would you be able to provide any additional clarification?
aha! Now it is making some more sense. Finally starting to get it to bend to my will now – thanks so much for your time and patience, has been a huge help! ??
Thanks again. I have managed to customise the html output from within the Settings panel in the Dashboard without any problems, but I am not understanding how to transfer that html syntax to the variables you have mentioned.
I’d like to know how I can override the default html output using the variables above, but I do know how to enter the correct html syntax.
I don’t yet know how to correctly assign html syntax to a php variable, I think that is the problem. If I can see some dummy syntax, then I can normally figure out how to adapt it from there.
$fmt_header = 'an example of some working html syntax to override default output header would be useful';
Again, apologies if I am totally misunderstanding you here.
Hi Christian,
Thanks very much for replying so quickly.
I have set up the template structure, and am now able to modify the duplicated single-category file.
Would it be possible to show me an example of some dummy html syntax within that code format?
$fmt_header = 'some header html here'; $fmt_content = 'some content html here'; $fmt_footer = 'some footer html here';
I am a bit out of my depth here, as I am still a novice and have never encountered this type of syntax yet!
How could I assign some html code to the $fmt_content variable for example? What would this look like in practice?
Sorry if this seems like a silly question.
Hi,
I found this thread because I am attempting to do the exact same thing – assign a custom template to a single category, but to no avail so far.Christian, would you mind giving a bit more detail about your solution mentioned above?
I have entered the code below into my ‘single-category.php’ file,
global $EM_Category; EM_Events::output( array('category' => $EM_Category->slug) )
and created a new permalink slug for Events Categories via the settings page, called ‘eventscategories’
What would be the next step from here? What do I need to call the custom template for ‘eventscategories’ in order for it to override the ‘single-category.php’ file?
Any help on this would be hugely appreciated!