Forum Replies Created

Viewing 15 replies - 31 through 45 (of 65 total)
  • Thread Starter Jas999

    (@jas999)

    Thanks!

    Thread Starter Jas999

    (@jas999)

    You answered beautifully. I was resizing my screen, not loading it on my cell or IPad. If I resize and hit ‘F5’, it does center my location, and this is what I need. Thanks!

    Thread Starter Jas999

    (@jas999)

    Great, Thanks.

    Thread Starter Jas999

    (@jas999)

    No, didn’t know developper.www.ads-software.com existed. I read in it, and it works!
    1) I created a folder named page-template in my child theme,
    2) I copied the code found in “page-fullwidth.php” from the parent theme to a file called “page_ullwidth.php”, making a few adjustment to the code (namely the new template name),
    3) I placed the file created in 2) in the folder created in 1).
    Voilà, the new template is available when I create or modify a page.
    Thanks!

    In the past, I have successfully installed WAMP 2.2 and WordPress3.x and multi sites, without any problems on my Windows 8.1 PC.
    Now, I cant. With virtual host, localhost does not seem to work as the DB address… Here is what I did and the problem I face.
    – I installed WAMP 2.5 on my PC yesterday (fresh install, not upgrade) using Firefox.
    – I then created 2 folders, c:\wamp\www\grece (put a index.php file and a few php files in it) and c:\wamp\www\wordpress where WordPress 4.1.1 was extracted.
    – I created a database with PhpMyAdmin called wp-test-1
    – I created a user called “jas” with all priviledge on all database and a password.
    Reading that it is better to create Virtual hosts before installing a CMS, I did create virtual hosts by modifying/adding to the following files:
    1) c:\Windows\System32\Drivers\etc\hosts adding

    127.0.0.1   localhost
    127.0.0.1    grece wordpress
    ::1          localhost
    ::1          grec wordpress

    2) c:\wamp\bin\apache\apache2.4.9\conf\httpd.conf removing the # before Include… around line 515

    # Virtual hosts
    Include conf/extra/httpd-vhosts.conf

    3) c:\wamp\bin\apache\apache2.4.9\conf\extra\httpd-vhosts.conf remove the lines that are examples (dummy etc) and added localhost, grece (I have a project named “grece”) and wordpress:

    <VirtualHost *:80>
      ServerName localhost
      ServerAlias localhost
      DocumentRoot C:/wamp/www
      <Directory "C:/wamp/www/">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride all
        Require local
      </Directory>
    </VirtualHost>
    <VirtualHost *:80>
      DocumentRoot C:/wamp/www/grece
      ServerName grece
      ServerAlias grece
      <Directory "C:/wamp/www/grece/">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride all
        Require local
      </Directory>
    </VirtualHost>
    <VirtualHost *:80>
      DocumentRoot C:/wamp/www/wordpress
      ServerName wordpress
      ServerAlias wordpress
      <Directory "C:/wamp/www/wordpress/">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride all
        Require local
      </Directory>
    </VirtualHost>

    I restart all WAMP services and reboot my PC. I reopened WAMP. The icon is green. I clicked on the icon, select “My Projects” and then “grece”. My project opens in a new window. I reclick on the icon, select “My Projects” and then “wordpress”.
    A new window opens: https://wordpress/wp-admin/setup-config.php?step=1&language=fr_FR. I fill in the fields then “send”. I get the page “https://wordpress/wp-admin/setup-config.php?step=2&#8221; saying it cannot choose the database. It says it is able to connect to the database server meaning user and password are OK but cannot connect to the database.
    I think it is “localhost” , the database address that is wrong but I do not know what else to put.
    Any suggestion anyone?
    Thanks in advance, it is driving me nuts!

    Thread Starter Jas999

    (@jas999)

    That is quite all right. Thanks!

    Thread Starter Jas999

    (@jas999)

    Thanks Zulf, Yes, it is resolved.
    Sorry for not responding before. I was doing some comparison tests with Ridizain and Twenty Fourteen in order to understand the way it now works; I am using your plugin Fourteen Extended in both cases.

    Now, in Ridizain, when hitting CTRL – a few times, the content gets smaller but the header image and the primary menu (top) remain as large as the screen (for example, I hit CRTL – 5 times before the header starts to shrink). At that point, the site looks a bit silly, the text of the content is very small while the header remains big.
    In Twenty Fourteen, the header and the menu do shinks along the content, so the relation between the header text and the content text looks better.

    Am I making sence? Maybe it was intentional that the header image remains that big. Was it? Since I use a large screen, I often use CTRL – to decrease the size of the font in the sites I visit, so I guess maybe other people do that too?

    Jas999

    (@jas999)

    IT WORKS: I just tried it, it works. In my Twenty Fourteen child theme, I copied the Twenty Fourteen header.php file and added after <div class=”header-main”> (around line 46) the following code (since I am using Soliloquy Lite, it is the function code provided by Soliloquy for this specific slider):

    <?php if ( is_front_page() ) : ?>
        <?php if ( function_exists( 'soliloquy_slider' ) ) soliloquy_slider( '344' ); ?>
    <?php endif; ?>

    This solution seems a little less complicated to implement than the one above for metaslider.
    And it shows the slider only on home page. And slider as well as menu still ‘stick’ to the top when scrolling.
    I hope it may help someone in the community!

    Jas999

    (@jas999)

    Hi Bob, check in Ridizain support:
    https://www.ads-software.com/support/topic/insert-a-slider-above-top-primary-menu=possible?
    In the case of Twenty Fourteen theme, it may be the header.php file that has to be modified, not the masthead.php. Give it a try and let me know if it works for you.
    Jas

    Thread Starter Jas999

    (@jas999)

    SUMMARY of the SOLUTION SLIDER in HEADER – JUST IN HOME PAGE:

    1. Make a copy of the file masthead.php and paste it in your Ridizain child theme (for other themes, it may be another file – this is for Ridizain).

    2. Create a slider (I used Soliloquy Lite but it may work with other free sliders).

    3. Copy the “function” code provided by the slider you just created. Mine was ” if ( function_exists( ‘soliloquy_slider’ ) ) soliloquy_slider( ‘344’ ); “

    4. Open the child masthead.php file. Right after <div class=’header-main”> and before <?php if (get_theme_mod …, insert
    ” <?php if ( is_front_page() ) : ?> <?php ” followed by the function code provided by the slider, in my cas it was ” if ( function_exists( ‘soliloquy_slider’ ) ) soliloquy_slider( ‘344’ ); ” and close it with ” ?> <?php endif; ?> “.

    This should give you the following code inserted:

    <?php if ( is_front_page() ) : ?>
        <?php if ( function_exists( 'soliloquy_slider' ) ) soliloquy_slider( '344' ); ?>
    <?php endif; ?>

    Voilà!

    Thread Starter Jas999

    (@jas999)

    SLIDER IN HEADER: IT WORKS! And with your last comment implemented (if is front page), the slider only appears on the home page. Moreover, the slider as well as the menu still ‘stick’ to the top of the page when scrolling. You are the best, Thanks! Have a great day!

    Thread Starter Jas999

    (@jas999)

    The drawback is that now the slider shows on every page, not just the home page… because it is now part of the master header!
    I tried to create a new-page-template.php that I used as my home page, a new-header.php, a new-masthead.php and linked them in their code: no good, I get errors when I show the home page, so there must be another way to do this…
    Fatal error: Call to undefined function get_new-header() in wordpress\wp-content\themes\Child-Ridizain\new-page-template.php on line 10 i.e. where I typed : get_new-header(); ?>
    Help?

    Thread Starter Jas999

    (@jas999)

    Zulf, you are really great. Really. Everybody says it, it is true, your answers are always helpful, and your themes and plugins, fantastic.

    I created a slider with “Soliloquy Lite”, which gave me a shortcode and a function code:
    SLIDER IN A PAGE: I was able to show a slider by inserting the shortcode (ex: [soliloquy id="344"] ) in a page.

    SLIDER IN THE HEADER: I made a copy of Ridizain masthead.php and paste it in my Ridizain child theme. I copied the function code proposed by “Soliloquy Lite” and added <?php at the start and ?> at the end <?php if ( function_exists( 'soliloquy_slider' ) ) soliloquy_slider( '344' ); ?> I added that code to my masthead.php right after <div class=’header-main”> and before <?php if (get_theme_mod …
    For now, it seems to work. Would that solution work with any other slider plugin? Well, I do not know…

    Zulf, is it where that function code should be?

    Thanks!

    Jas999

    (@jas999)

    Hi, it looks like the site https://www.dimitricarpet.com managed to incorporate Soliloquy Lite as a slider in the header of Twenty Fourteen theme…

    Thread Starter Jas999

    (@jas999)

    Hi Zulf, I noticed that the site https://www.dimitricarpet.com seems to have been able to incorporate a slider above the menu using Twenty Fourteen.
    I do not know if they use a free or a paying slider plugin, nor how they manage to incorporate it their site. Do you think we could be able to incorporate an existing slider plugin (hopefully a free one ?? ) in Ridizain? I am using a child of Ridizain so I can play with the style.css file.
    Thanks!

Viewing 15 replies - 31 through 45 (of 65 total)