Everything posted by junior
-
Can't remove table border (or whatever it is)
depending on where the CSS for the table is being called. If it doesn't work without the !important on your styles, they may be inline on the table elements or the plugin stylesheet is called after your stylesheet has been called meaning that the plugin rules overwrite yours. Whether it's bad to have !important? - personally I try not to use it but there are times like this with plugins that call for it.
- Advanced search in HTML string. (Preg_match)
-
Twitter API and fetching Tweets by ID
Cheers for the assistance Rallport, I ended up grabbing this that does pretty much everything for you, logging your app in and then you just need to pass through a URL, I would have written something similar myself only I was short on time for this project
-
Twitter API and fetching Tweets by ID
I'm using an API to query a third party that brings me back some information that I need, as well as the Tweet URL including the ID. I am now trying to query the Twitter API for my application to fetch the Tweets by the Tweet ID. I'm currently working locally using wamp and have setup the application on Twitter but I am getting an issue with retrieving the data I need. I'm currently using the answer from Peter Mortensen from here - but I keep having issues with the 'PHP CURL Error 60 SSL' Any help appreciated even if it is to use a different method of retrieving tweet data
-
Image Layout not correct when viewing site on phone/tablet
This doesn't currently look right on desktop. I am looking at this on my laptop (15" monitor) the banner is getting cut off and the widths for the the three links, as well as the pods below the banner are forcing the last one on to the next row. For starters you have a fixed width and height on the .figure div try using percents or max-height and max-width if you are trying to make it responsive. The banner text has the same issue. When developing, I often fall into the trap of 'well it fits on my 25" monitor so all is good' only to check on the laptop and it not be working on the smaller screen res. You are also getting a console error as the site cannot find http://www.gavindixon.co.uk/designs/scottco/css/component.css on the server. Is this file there? Should this help with the responsive styles?
-
Resizing Browser Image Background w/ CSS
Like in Eddie's example you can use vw (https://css-tricks.com/viewport-sized-typography/) for the font size or you could use rem/em (https://css-tricks.com/confused-rem-em/) and this is a link to help with the background-size attribute (https://css-tricks.com/almanac/properties/b/background-size/) in Eddie's example he hasn't used cover so you may want to look at possibly changing the 'cover' to something else
-
htaccess - 301 redirection and WP SEO URLs don't work
something like this may help you out http://coolestguidesontheplanet.com/redirecting-a-web-folder-directory-to-another-in-htaccess/ Not an expert but I would say that the .htaccess file to redirect the folders should be in the public_html folder This may be of use for the error https://wordpress.org/support/topic/the-requested-url-indexphp-was-not-found-on-this-server-3 additionally if you have access to the server you may be able to define a path to an ErrorDocument so that when you do encounter errors they get added to the file and you can then check these.
-
New Site Help Required - Best To Use ?
I think the question I would ask is: what experience do you have? and in what languages? budget would also come into play as some of the solutions to the question would be a lot more expensive than others.... what is your role in the project? just building this and the company sorts out the hosting/deployment? Judging by what you have said you may need a few different packages to achieve what you are looking for.
-
Border Top Radius for 1st and last drop down menu?
Try using psuedo classes #menu li:first-child and #menu li:last-child this should target the first and last li elements in the menu
- css img gallery not working in chrome
-
css img gallery not working in chrome
Not a problem. That error is no more. Interestingly I resized the browser (using chrome) so halved the size so that I could see the site and the console and the gallery then worked. Try adding some console.log() calls to the script and see if it is detecting the clicks once the page has loaded before any resize etc. That said - looking into the way that the page is working. It does fire the JS on load but nothing happens until you resize the browser. Playing around with the inspect element (right click > inspect element) adding a z-index to '#slide1_images img' seems to allow this to work but this would need testing throughout.
-
css img gallery not working in chrome
I'm getting an error in the console "Uncaught ReferenceError: $ is not defined" Basically you are calling jQuery but it hasn't been defined by that point on the page. It is relating to this code that calls the slide <script> $(document).ready(function() { $('#slide1_controls').on('click', 'span', function(){ $("#slide1_images").css("transform","translateX("+$(this).index() * -350+"px)"); $("#slide1_controls span").removeClass("selected"); $(this).addClass("selected"); }); }); </script> try moving this to the bottom of the page after you have loaded jQuery
-
"Just copy the source code from their site..."
Agree with both of the above points. If it is just presentational and not going to update then you could copy and paste this but I would presume that the 'news' section of a site would be able to update as and when which would need the functionality adding in, unless the US office expect someone to keep copying and pasting the news section from the US to your site when new news items are added. Possibly a bad idea but you could look info iframing the US page onto your site - this would need to be looked at from an SEO angle as canonicals and other tags would need to be implemented
- Datatables (again). JQuery Popconfirm issue after AJAX Load
-
DNS / Dev Server
can you gain SSH access on to the server using something like Putty? If so you should be able to setup the subdomain and point that at the correct folders on the server - like richardmountain suggested.
- struggling with CSS, should be no prob for advanced exp. member
- If <video> then don't play on mobile
-
RSS Feed Manipulation
sorry probably made a right pigs ear of explaining this as my head is awash with different scenarios or way it could in theory be done. I use Feedburner, but that just uses the RSS feed. In the RSS feed rather than my blog I would want to show the external link (the custom field) not the one generated on the site as this would be noindexed and 301'd to the external post as well as being ignored by any sitemap. Anyone got any ideas?
-
RSS Feed Manipulation
Basically I am writing on other blogs at the minute and I want to create a post on my site that just links to the original post on the second site (rather than my own permalink). This bit is easy as I am just using a custom field to change the permalink of the post to that of the second site. Now the issue comes that the RSS feed would only be linking to the post on my site. So, is there a way that I can manipulate the WordPress feed creation to change the link to be that of the second site also using the custom field? Looking through the codex and searching online I have a few ideas of being able to add filters into the functions files perhaps or use template tags but many of the ones that I would use are deprecated. Any help is welcome
-
different page on smartphones
If you are using something like bootstrap then there is the 'hidden-' and 'visible-' options. If you're not using something like this then you could also create your own class and remove the elements off the page using media queries if you need to.
-
formatting a submenu problem
After a quick look you would want to style the section between '2 level' and '3 level' if this is in a plugin CSS file then overwrite it in your CSS rather then the plugin as when it updates any changes may be overwritten.
-
Issues with Google Custom Search - bottom border missing
if this is being pulled in from Google using their styles you should be able to override this by changing your code to: .gsib_a { padding: 0 6px 0 !important; }
-
Keyword rich URL's
Google doesn't factor keyword rich URLs as highly as it once did it has shifted more to the bounce rate and content on the page. As for the structure I would suggest that admiretheweb.com/inspiration/the-website-featured would be the one to use. If you are creating custom post types for no reason other than to change the URL then you may end up with lots of different custom post types. I've had experience with custom post types and custom taxonomies and they can be a nightmare to figure out how they should work. As you're using WP then you could create a template to grab the specific posts, pages or links to show
-
Knowing what theme files to edit
Check out the WP codex http://codex.wordpress.org/Template_Hierarchy Basically if there isn't a template for it then it will revert to the index.php file. There are plenty of templates within a theme as you can override specific tags, categories, archives with specific targeted theme files
-
Simple question
Nock has nailed it for you. You can target any class on the page as long as the right hierarchy is used.