cooper1210
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: How to Edit HTML that is churned out by PHPYup, this is the problem, in that the template is installed as a child theme.
Thanks for the input @bcworkz, I haven’t been under the bonnet of wordpress yet, but quite familiar with other languages, what you said made sense.
Forum: Fixing WordPress
In reply to: How to Edit HTML that is churned out by PHP+1 for custom fields. I’m yet to look into this in more detail.
What would change from page to page:
– a short section of text, with a hyperlink
– sometimes an imageBut these two pieces of information must immediately follow the H2 tag, otherwise it may not get picked up by Google snippets.
Forum: Fixing WordPress
In reply to: How to Edit HTML that is churned out by PHPThanks Leland, I will look into that.
The reason why I thought a plugin would be more useful is that the elements would change from page to page, and I was thinking I could pass a parameter through when developing the theme itself.
The theme I’m working on is already a child theme, so I might have develop this using a child of a child, if that’s possible…
Forum: Plugins
In reply to: Import CSS from another site (FIXED)FIXED.
I had to change the #navRightCol to #content
It’s working’ish now, but I know enough to develop it further ??
Forum: Plugins
In reply to: Import CSS from another site (FIXED)P.S.
I’m not “copying” their site. I’m working on something a little different, but I’d like to work out how they are creating their tiles, and then I can make my own ??
kpgrahams response gave me cancer
OK,
Very unexpected behaviour, but it seems that it was a Chrome caching issue.
It worked firstly in Incognito mode, then worked normally when deleting my browsing history.
Very strange, and annoying that it was fixed so easily, hopefully this will help others in the future,
And thanks for the other advice guys,
Anyone?
I came up with a quick hack and added a trigger to my database:
BEGIN
SET
NEW .post_content = REPLACE (NEW .post_content, ‘?’,” );
ENDEssentially this just replaces ? with nothing, you can replace that with whatever characters are causing you problems
Forum: Fixing WordPress
In reply to: Replace Side Menu with Another Menu. PHP injectionYou’re slightly misunderstood, the sidebar is only removed when viewing POSTS, it is available on the main site when looking at PAGES.
What I want, is for <?php get_sidebar(); ?> to bring up a different menu in POSTS to what is being brought up for PAGES
Thanks
Forum: Fixing WordPress
In reply to: Hide Featured ImageGetting a similar age on this page :/
Forum: Fixing WordPress
In reply to: Hide Featured ImageFixed by adding:
.single .hero-section { height:88px;}
Forum: Fixing WordPress
In reply to: Hide Featured ImageThat kinda worked, but now what has happened, it’s moved the main content under the top bar. I could do with some padding to move it down
https://www.workhardplayharder.co.uk/2016/05/03/hello-world/
Forum: Fixing WordPress
In reply to: Hide Featured ImageAnyone?
Forum: Fixing WordPress
In reply to: iFrame Not Resizing Smaller for Mobile ScreensGot it sorted in the end, the fix was to include the iFrame in a div:
<div style="overflow: auto!important; -webkit-overflow-scrolling: touch!important;"> <iframe src="https://data.oddsmatching.com/Default.aspx" style="width: 100%; height: 1400px; display: block; overflow: scroll; -webkit-overflow-scrolling: touch;" ></iframe> </div>