wilddogltd
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Refur] Modifying PHP in child themeThanks.
I have tried using a plugin to do this, but the theme’s code overrides the changes when you refresh the screen.
It would be really useful if teFox could come on and help with this issue. Adding an option to allow for a different header image on each page and also to enable users to adjust the height of the image on screen should be a fairly basic requirement for most themes I would have thought. Also the ability to add a slider to the header area would be nce.
It is frustrating when every developer decides to reinvent the wheel for every theme! it is an issue with some many WP themes – time an again you run into very basic problems!
Forum: Themes and Templates
In reply to: [Refur] Missing Featured Content?Yes it is possible and I have managed to do this on my site whihc is in development.
https://wordpress2015.wilddogworld.com/wordpress/
To do this, best practice is to create a child theme and then modify the ‘extras.php’ file. Change line 105
`if ( ! is_front_page() || ! is_page_template( ‘home-page.php’ ) ) {
return;
}`…by adding a new php home page template in you child page folder and giving your own name. Modify the line of code above to match.
eg. my-homepage.php
The code would look like this:
<?php /** * Template Name: My Homepage * * @package refur */ get_header(); ?> <div id="primary" class="content-area col-xs-12"> <main id="main" class="site-main" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( 'template-parts/content', 'page' ); ?> <?php // If comments are open or we have at least one comment, load up the comment template. if ( comments_open() || get_comments_number() ) : comments_template(); endif; ?> <?php endwhile; // End of the loop. ?> </main><!-- #main --> </div><!-- #primary --> <?php get_footer(); ?>
All good, you end up with the featured content and your own homepage content rather then some posts. The featured content is injected into the header area by some other php code elsewhere in the theme.
However, I ran into an issue whereby the theme does not seem to recognise the modified extras.php file in the child theme folder so I have had to modify the parent page to make this change. Not ideal. I am not a code warrior by any means and it has taken me hours to figure this lot out!
I’d like to hear form teFOX on a better way of doing this…
Forum: Themes and Templates
In reply to: [Refur] SidebarVery useful.
Any way of modding the main blog posts page to add a side bar? There seems to be no template for this.
Also, I have successfully created a new homepage template with featured posts and page content, but to achieve this I have had to hack the main ‘extras.php’ file in the parent theme as when I tired to replace this by adding an ‘extras.php’ file in my child theme nothing changed…’s
I have read than anything in the ‘child’ folder replaces stuff in a parent folder, but this does not seem to be the case with php script. Adding code to the functions.pho file just seems to break the theme…
Forum: Plugins
In reply to: [SendPress Newsletters] Responsive images in SendpressThis just in an a mail from Josh:
“The social media link should work if you go into general > permalinks in WordPress and just hit save. They do a redirect for the tracking of clicks and it looks like the rewrite rule did not get saved.”
This has now fixed the links that were not working from the social icons and the URL links from body text.
Forum: Plugins
In reply to: [SendPress Newsletters] Responsive images in SendpressAlso links from the body text of the newsletter all get mangled and we get a “404” error.
Forum: Plugins
In reply to: [SendPress Newsletters] Responsive images in SendpressI am also having an issue with the social icons not linking to the correct URLs, instead they seem to link back to the cleitn’s website home page for some reason.
There seem to be quite a few bugs in the plugin.
Forum: Plugins
In reply to: [SendPress Newsletters] Responsive images in SendpressJosh,
Thanks for your reply I have sent you a mail.
Andy
Forum: Plugins
In reply to: [SendPress Newsletters] Responsive images in SendpressHave tried with a ‘max-width” CSS rule and this does not fix the issue. The footer is the main source of concern.
Forum: Fixing WordPress
In reply to: Google chartsOK.
I can see what has happened, but I am at a loss to explain how it has happened. Some how the code has been wrapped in a
// <![CDATA[// ]]>
tag of some kind…what is this and how do I prevent it happening again?
Thanks again for any help.
Forum: Plugins
In reply to: [Gallery – Photo Albums Plugin] Pro version will not install.OK. I apologise for any offence caused. For the record the plugin’s author did get back to me to try to resolve the issue.
Forum: Plugins
In reply to: [Gallery – Photo Albums Plugin] Pro version will not install.That’s just the point! I can’t seem to contact them!
Their contact forms returns a 404 error and their plugin does not install!
Forum: Plugins
In reply to: [Stable tag: 3.0] button import data doesn't workJust downloaded a fresh version and re-installed on the server and it is still not working…
Help!
Forum: Plugins
In reply to: [Stable tag: 3.0] button import data doesn't workI am having similar trouble with Chartboot GS edition. I am trying to add new data to this page, but when I select “Set Source”, nothing happens.
The dummy site I am working on is:
https://wordpress.wilddogworld.com/dashboard/
I need to be able to pull live data into this page from various google spreadsheets on the same page. If Chartboot cannot do this, let me know now and I’ll find an alternative!
Thanks
OK. I can answer my own question here…the answer is to create a new <div> in the caption and then add a background image to that div…
Some CSS to clear the background from the text should sort it out…have not figured this bit out yet, but nearly there…
Yes I’d also like to be able to show a list of recent publications in the main content area…