widget in header + teaser replace

resolved (8 posts) (2 voices)

  1. joryuto
    Member

    Hello

    I have two problems I could not solve in customising Infocus

    1. I want to insert qtranslate's language select links to the lower right corner of the header. Is it possible somehow to use the qtranslate widget to do this somehow or should I edit header.php manually? At this moment I can specify only the footer areas and the sidebars for widgets.

    2. I would like to use some custom HTML for the site's teaser. I tried to replace the teaser code in the blurb div in page.php and template-full.php too, but nothing happened. Where can I change it?

    And as I write this I remembered another problem

    3. With qtranslate I can easily set the navigation in two languages... But the HOME link remains home... it won't translate it, because it is not a page. How could I change the home link in the nav depending on the language selected. Can I use qtranslate tags in the template's php or should I write an if statement which verifies if the lang get variable is set? If this is the case could you help me out with the code because I really am not a php programmer...

    the site's URL is drbokorlaszlo.eu, if you would like to take a look...

    Thanks in advance
    Zsolt

    Posted 1 year ago #
  2. Elliott
    Support

    Hello joryuto,

    1. You can insert it manually by editing the header.php template. Go ahead and open up the template and at the very bottom you should see this,

    </div><!-- inner -->
    </div><!-- header -->

    You can add your code right before those ending divs and use some CSS to position it wherever you like. If you need more help with this then let us know.

    2. When editing your page / post you should be able to select "Custom" for the header teaser text and input shortcodes / html inside. Let us know if this works for you joryuto.

    3. In the header.php template on line 90 you should see this,

    <li <?php if (is_front_page()){echo 'class="current_page_item"';} ?> ><a>">Home</a>

    You can try using the qtranslate tags like this,

    <li <?php if (is_front_page()){echo 'class="current_page_item"';} ?> ><a href="<?php echo get_settings('home'); ?>"><!--:sk-->Ahoj svet<!--:--><!--:hu-->Szia világ<!--:--><!--:en-->Hello World<!--:--></a></li>

    And then replace it with your own languages. Here is some more information on this subject, http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=305

    Posted 1 year ago #
  3. joryuto
    Member

    Thanks for the response

    1. this was not a problem, inserted the language links to the head without problems. I used this:

    <?php echo qtrans_convertURL('', 'ro'); ?>

    2. I will use the teaser only on the home page. And I do not want to use that big button :) That;s why I wanted to modify the teaser area to a custom html. I know I can put html in the custom teaser field, I tried it but I need to get rid of the button and style a nice quotation... I may leave the teaser with the quotation in the inner pages too but I don't want the page title in the button. Can I remove somehow the button? This way I could still use the teaser area from the admin...

    3. This solution was not working but I found a solution with quicktags on qtranslate's support forum. Here is the working solution, maybe somebody can find it useful:

    <?php _e('[:hu]Főoldal[:ro]Prima pagină'); ?>

    Posted 1 year ago #
  4. Elliott
    Support

    2. When you say the big button do you mean the call to action button on the homepage or the title when viewing a regular post / page? If possible could you take a screenshot and highlight the area so we can get a better idea.

    3. Thanks for posting your solution. :)

    Posted 1 year ago #
  5. joryuto
    Member

    I mean both... it seems to me that they are pretty the same they just get their text from different places...
    In case of the site's pages I don't really need the teaser area, sometimes title will be a little too long for that background (surgical operations :P) but on the homepage it would be nice if I could display a quotation without the call to action (client is a little obsessed with quotations :D:D) and instead of the button I have to repeat the David statue symbol from the logo. That's why I needed to put some custom content there (without the call to action).

    I'd have another little question... :P

    Can you tell me where can I change the font size of the body paragraphs? I didn't have too much time today to search the css for it...

    Thanks Elliott :)

    Posted 1 year ago #
  6. Elliott
    Support

    Alrighty, try adding these lines in your /wp-content/themes/infocus/style.css file,

    #call_to_action_button { display: none; }
    #intro_blurb_title { display: none !important; }

    The first one is to hide the homepage call to action button and the second one is for hiding page titles.

    As for the body font sizes try adding this line in your style.css file,

    .entry p { font-size: 16px !important; }

    This will increase the text size of all paragraphs in your main content.

    Let us know if this works for you joryuto.

    Posted 1 year ago #
  7. joryuto
    Member

    everything works :) thanks for the help :)

    Posted 1 year ago #
  8. Elliott
    Support

    Glad that works for you joryuto. If you have any other questions then let us know.

    Posted 1 year ago #

Reply

You must log in to post.

Construct WordPress Theme
Construct wordpress theme
Myriad WordPress Theme
Myriad wordpress theme
Method WordPress Theme
Method wordpress theme
Fusion WordPress Theme
Fusion wordpress theme
Elegance WordPress Theme
Elegance wordpress theme
Echelon WordPress Theme
Echelon wordpress theme
Dejavu WordPress Theme
Dejavu wordpress theme
Modular WordPress Theme
Modular wordpress theme