Martin

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 58 total)
  • Author
    Posts
  • in reply to: I get error after mess up #4458

    Martin
    Participant

    If you can include the code you added and a link to the site that will be very helfpul.

    in reply to: How to align the divitions #4283

    Martin
    Participant

    In developers tools it shows that the .entry-content is closed with </div> before <div id=k>. Hence up to that point your entries are within .entry-content, but from then on #k etc are placed outside entry-content. Find how the rogue division close has come in there… though it might then be missing later on if it is simply misplaced.

    in reply to: Problems loading the page the first time #4243

    Martin
    Participant

    I think the root issue is a change to the layout of Thematic. If this has not been done through something like jQuery then I assume it has been done through actually changing how the pages are displayed in the page.php template. If you have made those changes I would undo those structural changes and start again. you could start a new childtheme and use a themetester plugin so that the current layout remained visible to viewers.

    The structural layout I am referring to is:

    <div id=container>
    	<div id=content>
    		<div id=post>
    			<h1 class=entry-title></h1>
    			<div id=primary></div>
    			<div class=entry-content></div>
    		</div><!--post-->
    	</div><!--content-->
    </div><!--container-->

    Your #primary division is misplaced.

    in reply to: Problems loading the page the first time #4233

    Martin
    Participant

    The layout seems to be a little changed from Thematic, where main should contain the container and the contents, then the primary. Perhaps you have altered the layout which is now affecting how the page is displayed. If so I suggest go back and rework the layout as per Thematic. Maybe you could enter display:inline-block to #content.

    in reply to: Problems loading the page the first time #4231

    Martin
    Participant

    Minor point – you are importing a font from google but the href being used is ‘ttp://fonts.googleapis.com/css?family=Open+Sans:800’. Better also to enqueue than import…

    in reply to: aside is wrong place #4229

    Martin
    Participant

    Probably not the whole deal but your stylesheets that you are importing are not being imported… 404’s are reported. Maybe first make sure that they exist.

    in reply to: Themantic left sidebar menu highlight #4217

    Martin
    Participant

    You have a css height set at 400px for the first one on #primary. Remove that. (If it helps) you also seems to have a layout that is different to Thematic – #primary appears inside of the actual post underneath the entry-title.

    in reply to: Themantic left sidebar menu highlight #4215

    Martin
    Participant

    I think the difficulty is that you have a previous tab with a class of .current_page_ancestor… hence it seems that class has to be targetted twice. Try at the bottom of the menu styling:

    #primary .current_page_ancestor .current_page_ancestor a, #primary .current_page_ancestor .current_page_item li a
    { font-weight: bold; }

    in reply to: Separate css for child theme page template? #4071

    Martin
    Participant

    If you create a new page template and it is saved as name.php all the styling for any content using that page template will be preceded by:

    .page-template-name-php

    so for example .page-template-name-php #content will give you css for the content id when that page is chosen.

    in reply to: Wrapping Theme Content #4057

    Martin
    Participant

    I presume the sidebar is being placed there by jigoshop as the full page template will remove the Thematic sidebar. If jigoshop is adding the sidebar then open developers tools and you will discover the structure of this ‘sidebar’. Assuming you wish to keep it you can then position it with css.

    The most likely scenario is that jigoshop has a specific sidebar it loads if sidebar.php is not added to the page (and of course it is not added in full width template). If you are keeping the sidebar that is now being added you will need to reduce the width of container and content on the page / pages used by jigoshop.

    in reply to: Wrapping Theme Content #4051

    Martin
    Participant

    I have not used jigoshop so the following is only based on the forum article you refer to. Assuming you have the issue that is referred to, and the code given is the solution it seems that all you need to do is to copy the block of code given (there is at least one quote missing in the block of quote there so also check all opening quotes have a corresponding closing one) but with a thematic specific response in the line that echoes the divisions. Seems it would be:

    echo &#8216;<div id="main"><div id="container"><div id="content">&#8216;;
    in reply to: Removing Thematic_access only on the front page #3949

    Martin
    Participant

    OK… it seems (and I don’t get it) that the thematic_access removal does not respond to the conditionals. So I too wait for a solution!!

    Maybe try and remove the access from all pages, and then either add access back in with pages that you want to access it, or do something like this (not saying it is satisfactory but might get you there in the meantime):

    function new_access(){
    if( is_page( array( (xx, xx, xx) ) ) ){
    ?>
    <div id="new_access" style="height: 20px; background: black; display:block;">Martin</div>
    <?php
    }
    }
    add_action('thematic_header','new_access',9);

    Then add all the access stuff (nav_menu etc.) back in there - you will find that in library/extensions/header-extensions.php.

    in reply to: Removing Thematic_access only on the front page #3947

    Martin
    Participant

    Apologies for the code above – I think I copied and pasted and the editor did not like it… Hope this is clear – if only removing it in the home / front page then:

    function remove_thematic_access(){
    if(( is_home() || is_front_page() )){
    remove_action(‘thematic_header’,’thematic_access’, 9);
    }
    }
    add_action(‘thematic_child_init’, ‘remove_thematic_access’);
    in reply to: Removing Thematic_access only on the front page #3946

    Martin
    Participant

    OK If only removing on the home / front page then you need a conditional:

    <code class="php keyword">function</code> <code class="php plain">remove_thematic_access(){</code>
    
    if(( is_home() || is_front_page() )){
    
    <code class="php keyword"><code class="php plain">remove_action(</code><code class="php string">'thematic_header'</code><code class="php plain">,</code><code class="php string">'thematic_access'</code><code class="php plain">, 9);</code></code>
    
    <code class="php keyword"><code class="php plain"></code></code><code class="php plain">}</code>
    
    <code class="php plain"></code><code class="php plain">}</code>
    
    <code class="php plain"></code><code class="php plain">add_action(</code><code class="php string">'init'</code><code class="php plain">,</code><code class="php string">'remove_thematic_access'</code><code class="php plain">);</code>
    
    

    On the original comment also I should have placed the pages ‘about, and ‘contact’ inside an array. Also try the amended last line with the hook ‘thematic_child_init’

    in reply to: Removing Thematic_access only on the front page #3944

    Martin
    Participant

    If you only want to keep access on a few pages why not exclude some pages:

    function remove_thematic_access(){
    
    if (!is_page( ‘about’, ‘contact’ )) {
    
    remove_action(‘thematic_header’,’thematic_access’, 9);
    
    }
    
    }
    
    add_action(‘init’,’remove_thematic_access’);

    Not tested and I also think the last line now should be:

    add_action(‘thematic_child_init’, ‘remove_thematic_access’);
Viewing 15 posts - 1 through 15 (of 58 total)