john kimon
Member
Posted 3 months ago #
WordPress novice, working on the Calotropis theme, which at the top of its home page has a static image illustrating the main post. What I'd like to do is replace the static image with a slider image or video gallery. I think I know how to get the plugins onto the page, but I don't know how to delete from the theme the original static image holder and the bit on its right where the text goes. Any assistance, especially if its simple to grasp and implement, would be massively appreciated.
Thanks
john kimon
Member
Posted 3 months ago #
I've posted there as well – I'm covering all bases.
Actually, what I've just discovered is that when I've got the Developer tools open in Safari I can highlight stuff I want to delete and just hit the delete key on my keyboard and the offending item disappears.
What I've now got to figure out – unless someone would be kind enough to help me – is how to find those bits of code in the parent theme and delete them from there. I'm also having trouble copying over my functions.php file from parent theme to child theme – functions.php in child theme just whites everything out – so I want to sort out this problem before I proceed, because I understand it's not a good idea to start deleting stuff from the parent theme. Is this right?
Thanks
is how to find those bits of code in the parent theme and delete them from there
Why would you do that? It completely negates the whole point of using a child theme.
functions.php in child theme just whites everything out
Sounds like you have PHP errors in the file. Check your server's error logs for clues.
john kimon
Member
Posted 3 months ago #
I've noticed in the forums that this 'whiting out' problem copying functions.php from parent to child theme is common and there doesn't seem to be a solution. So, it seems logical to me that if what needs to be done can't be done in the child theme, then it should be done in the parent theme – with care. Not that I can find what I'm looking for in the parent theme files. I can find the code in html using developer tools in Safari, but can't find the code in any of the files in the parent theme. Unbelievably frustrating. Not impressed. The html code is:
<div class="itx-featured">
<div class="ui-widget-header cont">_</div>
copying functions.php from parent to child theme is common
That's because you shouldn't be doing that. If the parent theme allows it, you can create a new function in the child theme with the same name that over-writes the parent's. Otherwise, you have to create completely new functions in the child theme.
john kimon
Member
Posted 3 months ago #
I think I get this. I read somewhere else that the only files you really need in a child theme are the index.php and the style.css.
Still, for my purposes all I want to do is make a minor, minor modification to the parent theme and I can't even find the code in the parent theme to do this; which seems a bit ridiculous.
Some themes are far more "child-friendly" than others. They set up filters that you can use in the child to override something in the parent. Functions can be completely re-written in the child theme because the parent theme "checks" for a function first before defining. I can only assume that the Calotropis theme wasn't developed with child themes in mind - which can make your task a lot harder.
Have you tied looking at the parent's index.php template file for this image code?
john kimon
Member
Posted 3 months ago #
Thanks, esmi, for the advice and information.
I have looked in every single file in the parent theme for the code, but not found it. The index.php file is blank, there's nothing in it – not a sausage.
Are you sure you are looking in the right index.php file? I don't know the Calotropis theme but the file you need to check should be in something like wp-content/themes/calotropis.
john kimon
Member
Posted 3 months ago #
Yes, it's there with all the other php files – sidebar.php, search.php, page.php, header.php, functions.php and so on; and there's nothing in it.
I'm sorry but as this theme obviously does not follow the usual template system, there's not a lot I can suggest. Have you tried contacting the theme's developer?
john kimon
Member
Posted 3 months ago #
Thanks for your help, esmi.
I have posted questions on the theme developer's forum, but he hasn't responded to them. In fact, I've noticed that he doesn't really respond to questions from users. To be honest, this really isn't good enough, and I want to complain about the theme – that it's been put out there and approved by wordpress and doesn't conform to standards and about the developer, who doesn't seem to be interested in responding to user questions. Who needs to know about this?
I didn't say that the theme didn't conform to standards. I said that it didn't follow the usual template system (which makes it difficult to troubleshoot via a general forum). Judging by the theme's last submission date, it did undergo a manual review and it did conform to the Theme Review Guidelines as they existed in Dec 2010.
But at the end of the day, it's a free theme and there is no way that anyone can force a theme developer to offer support (although it is encouraged as much as possible). Have you thought of trying another theme?
john kimon
Member
Posted 3 months ago #
I've tried quite a few themes and they've all ended up having one problem or another. I'd just about managed to figure out how this theme could work for me but I really don't want that boring static image at the top and do need a sliding gallery of some sort, so I will have to look at other themes. Back to square one!
Again, esmi; thanks for your help and patience.