WordPress.org

Ready to get started?Download WordPress

Forums

Link Problem (5 posts)

  1. dan-excel
    Member
    Posted 2 years ago #

    I am redesigning the theme for my website; I want to make it responsive (adaptable to multiple devices). The problems occurs when I re-size my screen to about 750px and the tablet stylesheet implements. All of my other links work outside of the custom one on my home page.
    this is the code:

    <a class="link" title="Objective" href="http://localhost/Demo/objective/">More Info</a>

    It works with the primary stylesheet just fine. I tried using:

    ''<a class="link" href="<?php bloginfo('url'); ?>/objective" title="objective">More Info</a>`''

    when I applied the content directly in the php page template and it still does not work. the link to that stylesheet is this:

    <br />
             <!-- tablet --><br />
          <link href="<?php bloginfo("template_url"); ?>/tab_style.css" rel="stylesheet" type="text/css" media="only screen and (min-width:450px) and (max-width:749px)"><br />
    
    Anyone knows what can be causing this problem?
  2. Emil Uzelac
    Theme Review Admin
    Posted 2 years ago #

    Hi,

    I am guessing that every new topic on WPORG that has anything to do with "responsive" will be linked to my Responsive Theme just because it's named "Responsive" and even though this or any other topic isn't really related to this specific Theme. But that's quite allright.

    Anyways, please take a look at http://wordpress.org/extend/themes/responsive and either grab what you need from it, or even take the entire Theme if you wish.

    Another FYI is that localhost doesn't always behave nicely when it comes to media queries, especially if you're on Internet Explorer, but it could be any other as well. It's always good thing to do this on the actual live server if you can, simply setup your WP on example.com/dev and go from there.

    Cheers,
    Emil

  3. dan-excel
    Member
    Posted 2 years ago #

    thanks for the help any way.

  4. sjsuarez
    Member
    Posted 2 years ago #

    If anyone is having problems finding a responsive theme (not free though), there are premium versions available with usually lots of support. WordPress Responsive Themes.

  5. dan-excel
    Member
    Posted 2 years ago #

    Actually, I fixed the problem. All I did was change the name of the stylesheet from tab_style.css to tablet.css. WordPress was freaking out over the word "style" in the alternative stylesheet. Buying a theme would totally defeat my purpose, but thanks for the offer.

Topic Closed

This topic has been closed to new replies.

About this Topic