Forum Replies Created
-
AuthorPosts
-
February 15, 2017 at 10:16 pm in reply to: How to remove the body background picture on mobile and tablets #747698
Hi Nikko,
thanks for the code. Just by looking at it I cannot tell if it’s working. There is no difference. What I hope is that the background picture is not loading on phones when I use your code. So I will put it in.
Thanks
garnschuh
February 12, 2017 at 10:20 pm in reply to: How to remove the body background picture on mobile and tablets #746043HI Nikko,
that’s actually not the picture. I am talking about the site background. It’s a tree trunk. I kinda fixed the original problem by putting the picture on repeat.However, it is s big picture and I’d rather have it not loaded on phones and tablets, or at least on phones.
So apparently it is possible to target these devices?
How do I replace the picture with a color – meaning how do I get a simple, fast loading background?thanks
February 7, 2017 at 1:44 pm in reply to: How to remove the body background picture on mobile and tablets #743897HI Nikko,
thanks for getting back. Unfortunately, there is no change visible, even after clearing cache.
Any possibility to replace the background picture with just a color on tablets? Is it possible to code something like this specifically for tablets at all?Thanks,
garnschuh
January 8, 2016 at 9:50 am in reply to: How to change magazine entries to show subheading instead of post date #561861<?php /* * Add your own functions here. You can also copy some of the theme functions into this file. * WordPress will use those functions instead of the original functions then. */ function add_child_shortcode_folder($paths) { if(! is_array( $paths ) ) { $paths = array(); } $child_path = array(dirname(__FILE__) ."/config-templatebuilder/avia-shortcodes/"); $paths = array_merge($child_path, $paths); return $paths; } add_filter('avia_load_shortcodes','add_child_shortcode_folder', 1000);
January 8, 2016 at 9:49 am in reply to: How to change magazine entries to show subheading instead of post date #561860Hi Yirgit,
Thnaks a lot for your help. It works! I don’t know what caused the error!
Anyways, here is the correct functions.php code below in case someone needs it.Cheers!
AnneJanuary 7, 2016 at 11:15 pm in reply to: How to change magazine entries to show subheading instead of post date #561590January 6, 2016 at 9:43 pm in reply to: How to change magazine entries to show subheading instead of post date #560772HI,
thanks for your reply. Unfortunately, I still get the same error.
It works fine with an “empty” functions.php but when the code is added, it does not work anymore.Can you havwe another look?
Thanks very much,
AnneJanuary 6, 2016 at 12:53 pm in reply to: How to change magazine entries to show subheading instead of post date #560460`<?php
/*
* Perspektivschmiede theme functions file.
*///set the child theme folder that contains the modified shortcodes and make sure, it is the first element
function add_child_shortcode_folder($paths)
{
if(! is_array( $paths ) )
{
$paths = array();
}$child_path = array(dirname(__FILE__) .”/config-templatebuilder/avia-shortcodes/”);
$paths = array_merge($child_path, $paths);
return $paths;
}add_filter(‘avia_load_shortcodes’,’add_child_shortcode_folder’, 1000);
- This reply was modified 8 years, 10 months ago by garnschuh. Reason: Trying to get the hirarchy of the code, but it won't work
January 6, 2016 at 12:49 pm in reply to: How to change magazine entries to show subheading instead of post date #560455HI!
Thanks for your reply.
I did as decribed (at least that’s what I think;-) but when I want to activate the child theme I get this syntax error:
Parse error: syntax error, unexpected end of file in /homepages/7/d520157044/htdocs/clickandbuilds/Perspektivschmiede/wp-content/themes/Perspektivschmiede/functions.php on line 22 (this is the very last line)
and cannot figure out what the problem is. Can you help?Here is the functions.php code:
<?php
/*
* Perspektivschmiede theme functions file.
*///set the child theme folder that contains the modified shortcodes and make sure, it is the first element
function add_child_shortcode_folder($paths)
{
if(! is_array( $paths ) )
{
$paths = array();
}$child_path = array(dirname(__FILE__) .”/config-templatebuilder/avia-shortcodes/”);
$paths = array_merge($child_path, $paths);
return $paths;
}add_filter(‘avia_load_shortcodes’,’add_child_shortcode_folder’, 1000);
Thanks a lot,
AnneJanuary 4, 2016 at 3:12 pm in reply to: How to change magazine entries to show subheading instead of post date #559214Hey Basilis,
thanks a lot. It works!
With the help of this thread ( https://kriesi.at/support/topic/events-in-ascending-order/ ), I was even able to sort the posts, so that the most recent is on top (just changed it to ascending order).Therefore, I edited the posting date to exactly one year before the event. So the oldest comes first.Now it works perfectly as an upcoming events list.One more questions though concerning the magazine showing the excerpts (as event dates). For this I had to edit magazine.php and was hoping I could put the file into the child theme, so I won’t lose the changes on a theme update. This did not work. Is there a special trick or is this just not working in this case since the original file is not placed directly in the theme folder?
Thanks a lot for your advise.
AnneDecember 30, 2015 at 7:04 pm in reply to: How to change magazine entries to show subheading instead of post date #558531HI There,
I researched a bit more and came up with the idea to put the event dates as excerpt. There is a thread where you provided the code that needs to be changed in order to show the excerpt on all magazine posts: https://kriesi.at/support/topic/show-excerpt-in-all-magazine-blog-list/
This works perfect (I’ll have to use a child theme I suppose, to keep this).The only thing left is that it is a bit confusing showing both the posting date and the event date. What else is necessary to not show the posting date above the title anymore but only title and excerpt?
Thnaks very much.
Anne
December 20, 2015 at 9:04 pm in reply to: How to change magazine entries to show subheading instead of post date #555660HI,
after 5 days waiting for a halpful response I feel a bit disappointed. You surely must have an idea on what to do here, with such a team around.I would love to hear from you.Thanks,
AnneDecember 18, 2015 at 9:09 am in reply to: How to change magazine entries to show subheading instead of post date #554868HI Ismael,
thanks for your reply. As of now, the magazine entry shows the title and above that title the date when this portfolio entry was posted. However, I need it to show the date of the event. Now here comes the tricky part: (please click one of the magazine entries to see the complete portfolio entry – that way you will understand what I am talking about;-) I used the special header for creating the headline of the event and there used the subheading for the date of the event. Now the question is: what can I do so the magazine entry on the homepage (or where ever) does not pull the “date posted” but the text stated in the subheading of the portfolio entry. I assume you can do this with shortcode but I have no idea what that would look like and where to put it.
Maybe this is not possible the way I hope for. Then the question is: do you have any idea how this could be done (have the date of the event showing in the magazine entry)? Worst case would be to justnot shown the “date posted” above the title in the magazine entry.
Hope you can help.
Thanks,
anne -
AuthorPosts